cSmartSqlStatement::FollowsJoin() - rstoetter/csmartsqlstatement-php GitHub Wiki

Method FollowsJoin( )

 private   boolean rstoetter\cSmartSqlStatement\cSmartSqlStatement::FollowsJoin()

The method FollowsJoin( ) scans the actual query string and returns true, if a join follows in a table reference table_reference: table_factor | join_table

table_factor: tbl_name [PARTITION (partition_names)] [[AS] alias] [index_hint_list] | table_subquery [AS] alias | ( table_references )

join_table: table_reference [INNER | CROSS] JOIN table_factor [join_condition] | table_reference STRAIGHT_JOIN table_factor | table_reference STRAIGHT_JOIN table_factor ON conditional_expr | table_reference {LEFT|RIGHT} [OUTER] JOIN table_reference join_condition | table_reference NATURAL [{LEFT|RIGHT} [OUTER]] JOIN table_factor

Example:

Returns

boolean true, if a join follows