MySQL [test]> desc t1
-> ;
+-------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+---------+------+-----+---------+-------+
| id | int(11) | YES | | NULL | |
+-------+---------+------+-----+---------+-------+
1 row in set (0.002 sec)
MySQL [test]> create temporary table t4 as select;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your OceanBase version for the right syntax to use near 'select' at line 1
MySQL [test]> create temporary table t4 as select * from t1;;
ERROR 1235 (0A000): View/Table's column refers to a temporary table not supported
ERROR: No query specified
MySQL [test]> create temporary table t4 as select id from t1;
ERROR 1235 (0A000): View/Table's column refers to a temporary table not supported
MySQL [test]> create temporary table t4(id int) as select id from t1;
ERROR 1235 (0A000): View/Table's column refers to a temporary table not supported
MySQL [test]> create temporary table t4(id int) as select from t1;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your OceanBase version for the right syntax to use near 'from t1' at line 1
MySQL [test]> create temporary table t4 like t1;
Query OK, 0 rows affected (0.033 sec)
MySQL [test]>