B box Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-04 #1 请问,sql数据库中有一个表的字段为text类型,我要在delphi中给他赋值,请问怎么写?
天 天真 Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-04 #4 query1.sql.text:='insert table into valuesstr)'; query1.paramsbyname('str').asstring:='fasdfasdf'; query1.execsql; 这样就行了,假设 该字段为TEXT型, 更新为 query1.sql.text:='update table XX=:str'; query1.paramsbyname('str').value:='fasdfdsafasdf'; query1.execsql; 假设XX为TEXT的字段
query1.sql.text:='insert table into valuesstr)'; query1.paramsbyname('str').asstring:='fasdfasdf'; query1.execsql; 这样就行了,假设 该字段为TEXT型, 更新为 query1.sql.text:='update table XX=:str'; query1.paramsbyname('str').value:='fasdfdsafasdf'; query1.execsql; 假设XX为TEXT的字段