如何在字符串文字中写数字? [英] How do I write numerals in a string literal?
本文介绍了如何在字符串文字中写数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我下面的Delphi代码引发了编译器错误:不兼容的类型:字符串和整数在行中
My following Delphi code is throwing a compiler error: incompatible type: string and integer in line
SQL.Text := 'Select ColumnA from TableA where ColumnA NOT IN ('+ 3 + ',' + 4 +')';
如何将数字放入SQL语句中?
How do I put the numbers in the SQL statement?
推荐答案
此行应如下所示:
SQL.Text:='从TableA中选择ColumnA,其中ColumnA NOT IN(3,4)';
这篇关于如何在字符串文字中写数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文