Java Code Examples for com.alibaba.fastsql.sql.SQLUtils#toMySqlString()
The following examples show how to use
com.alibaba.fastsql.sql.SQLUtils#toMySqlString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SqlParser.java From canal with Apache License 2.0 | 5 votes |
public static String parse4WhereItem(MySqlSelectQueryBlock sqlSelectQueryBlock) { SQLExpr sqlExpr = sqlSelectQueryBlock.getWhere(); if (sqlExpr != null) { return SQLUtils.toMySqlString(sqlExpr); } return null; }
Example 2
Source File: SqlParser.java From canal with Apache License 2.0 | 5 votes |
public static String parse4GroupBy(MySqlSelectQueryBlock sqlSelectQueryBlock) { SQLSelectGroupByClause expr = sqlSelectQueryBlock.getGroupBy(); if (expr != null) { return SQLUtils.toMySqlString(expr); } return null; }
Example 3
Source File: SqlParser.java From canal with Apache License 2.0 | 4 votes |
public static String parse4FromTableSource(MySqlSelectQueryBlock sqlSelectQueryBlock) { SQLTableSource sqlTableSource = sqlSelectQueryBlock.getFrom(); return SQLUtils.toMySqlString(sqlTableSource); }