sql语句中字符串如果有分号,怎么办?

select * from table1 where term = ✀abd;efg✀; 执行出错。
2025-03-24 17:56:45
推荐回答(1个)
回答1:

select * from table1 where term = 'abd\;efg';

这样试试。