我使用UniDAC查询Mysql时,下面语句就会报“#42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''\??????' at line 1”
而我使用MyDAC则没有问题。麻烦各位帮我看看是什么原因,谢谢。
vQuery := TUniQuery.Create(nil); vQuery.Connection := vUniCon; vQuery.SQL.Text := 'select userid from allusers where title=:title'; vQuery.ParamByName('title').Value := '总经理'; vQuery.open;
----------------------------------------------
-