Home > Back-end > The Insert Into statement variables in how to write?
The Insert Into statement variables in how to write?
Time:02-27
ADOQuery1. SQL. The Add (' Insert Into XusSheng (XueHao, XingMing, JiGuan) ');//JiGuan native this field, I want to use Edit2. Text ADOQuery1. SQL. The Add (' Select XueHao, XingMing, Edit2. The text From XSDA ')//Edit2. The text is the variable,
CodePudding user response:
ADOQuery1. SQL. The Add (' Insert Into XusSheng (XueHao, XingMing, JiGuan) values (: XueHao, XingMing, : JiGuan) '); ADOQuery1. The Parameters. ParamByName (' XueHao). Value:=Edit1. Text; The parameter//other