delphi中Query连接数据库总显示 no SQL statement avialable
delphi中Query连接数据库总显示 no SQL statement avialable
[解决办法]
Query组件sql属性没有付值或者付了非选择Sql语句
例如
Query1.sql.text := 'select * from 表 ';//这是正确的
Query1.sql.text := 'update 表 set a = b ';//这是错误的
Query1.sql.text := 'delete 表 ';//这也是错误的