select * from table where EventId=整形变量 ,这个语句最后的整形变量怎么表示啊?(100分)

  • 主题发起人 主题发起人 blueearth
  • 开始时间 开始时间
B

blueearth

Unregistered / Unconfirmed
GUEST, unregistred user!
select * from table where EventId=整形变量 ,这个语句最后的整形变量怎么表示啊?
如果是字符串的话可以
select * from table where EventId='''+eventid+''''
 
没有人知道吗?焦急等待中!!
 
'select * from table where EventId='+eventid
 
你用參數來表示不就行了嗎。
 
i:integer;
sql:string;
begin
i:=10;
sql:='select * from table where EventId='+inttostr(i);
end;
//你是要这么个东西吧
 
'''+eventid+''''
你这样做了还要strtoint('''+eventid+'''')才行
 
楼主不会是问这么简单的问题吧?
 
select * from table where EventId='+eventid
 

Similar threads

S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
929
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
后退
顶部