SQL 语句的支持范围还在不断扩大,本文将介绍目前 SQL 语句的支持情况。
FMT 模式支持 SELECT、INSERT、UPDATE、DELETE 四类 DML 语法的部分功能。
FMT 模式不支持存储过程、触发器。
SQL 语句的支持范围还在不断扩大,目前 SQL 语句的支持情况如下:
如果需要使用其它 SQL 语句,请在控制台 提交工单 咨询。
基本 SQL 语句
类型 | SQL 实例 | 是否支持 |
INSERT | INSERT INTO tb1 (col_name,…) VALUES ({expr,value},…) | 是 |
INSERT INGORE | INSERT INGORE INTO tb1 (col_name,…) VALUES ({expr,value},…) | 是 |
INSERT … ON DUPLICATE KEY UPDATE | INSERT INTO tb1 (col_name,…) VALUES ({expr,value},…) ON DUPLICATE KEY UPDATE SET col1=expr1 [, col2=expr2 …] [WHERE where_definition] | 是 |
UPDATE | UPDATE tb1 SET col1=expr1 [, col2=expr2 …] [WHERE where_definition] | 是 |
DELETE | DELETE FROM tb1 [WHERE where_definition] | 是 |
SELECT | SELECT select_expr, … FROM tb1 [WHERE where_condition] [order by condition] [group by condition [having condition]] [for update] [limit statement] | 是 |
更新 SQL 语句
类型 | SQL 实例 | 是否支持 |
AND & OR | UPDATE … WHERE col1 = expr1 AND col2 = expr2 | 是 |
LIKE | UPDATE … WHERE col1 LIKE ‘X%’ | 是 |
BETWEEN | UPDATE … WHERE col1 BETWEEN expr1 AND expr2 | 是 |
IN | DELETE … WHERE col1 in (expr1 ,…, exprN) | 是 |
IS NULL | DELETE … WHERE col1 IS NULL | 是 |
嵌套语句 | UPDATE tb1 … WHERE col1 in (select col2 from tb2) | 否 |
存储过程、触发器 | 否 |
SELECT 语句
类型 | SQL 实例 | 读未提交 | 读已提交 |
AND & OR | SELECT * FROM tb1 WHERE col1 = expr1 AND col2= expr2 | 是 | 是 |
ORDER BY | SELECT col1, col2 FROM tb1 ORDER BY col1 | 是 | 是 |
GROUP BY | SELECT col1, col2 FROM tb1 GROUP BY col1 having col1 > 1 | 是 | 是 |
LIKE | SELECT col1, col2 FROM tb1 WHERE col1 LIKE ‘X%’ | 是 | 是 |
IN | SELECT col1, col2 FROM tb1 WHERE col1 IN (expr1, expr2,…) | 是 | 是 |
BETWEEN | SELECT col1, col2 FROM tb1 WHERE col1 BETWEEN expr1 AND expr2 | 是 | 是 |
LIMIT | SELECT col1, col2 FROM tb1 LIMIT x | 是 | 是 |
JOIN、INNER JOIN、LEFT JOIN、RIGHT JOIN、FULL JOIN | SELECT col1, col2 FROM tb1 JOIN tb2 ON tb1.col1= tb2.col2 | 是 | 否 |
UNION、UNION ALL | SELECT col1, col2 FROM tb1 UNION SELECT col1, col2 FROM tb2 | 是 | 否 |
嵌套查询 | SELECT col1, col2 FROM tb1 where col1 in (select col3 from tb2) | 是 | 否 |
存储过程、触发器 | 否 | 否 |