如何将sqlserver的sql语句转成mysql

2024-11-29 05:49:43
推荐回答(1个)
回答1:

差不多呢。

SET @COUNT_STRING = CONCAT('SELECT * FROM ', 't_admin', ' where 1=1 ', ' and id=7');
PREPARE count_stmt FROM @COUNT_STRING;
EXECUTE count_stmt;