问题这样,在sql数据库表中有几个字段属于int型,想在程序取出来应该怎么做
var 
x:integer;
.......
str:='select * from table where (name:='''+ll+''')';
open;
x:fieldbyname('为整型的字段名').asstring;这样可不可以,因为asstring是不是作为string 型取得的?我不知道,所以请教
还有另一个有一个float型数据x,想把它插入到表中去,该怎么做因为
str:='insert into table('column1','column2'...) values column1='''+x+'''';这句似乎是插入字符串使用的,我不知道如果插入的是int ,float 这种应该怎么做,请大家帮帮忙