怎样在本地取得SQL服务器上的时间,并能够对取得的时间进行操作。我知道用Getdate()来取得时间但不知道怎么把时间赋到自定义的变量中, 以便操作。(delphi)
解决方案 »
- Delphi从webbrowser中复制内容粘贴到新的WEB编辑器中
- spinedit的问题
- 电力系统ERP、OA求购,提供信息者有分!
- 关于窗体继承的一个问题,急!
- 解释一下,这段代码?谢谢
- 如何制作类似于QQ“个人设定中”-->"基本资料"-->"头像"自定义头像中的下拉筐!
- 用Delphi做的系统向B/S模式上的移植问题(相信很多人面临的),谁有好的方案?
- 急急急,请编程爱好者帮忙,在下感激不尽!!!
- 怎样将jpg文件转换为bmp文件?
- 如何下载frame for frame 的ie页面,就像csdn一样由几个页面组成的网页?(200分)
- 请问如何ClientDataSet里增加一个数值型字段
- 我用printer.canvas.stretchDraw(r,image1.picture.graphics)打印,为什么有时打出的是空白
aquery:TADOQuery;
begin
aquery:=TADOQuery.Create(Application);
aquery.ConnectionString:=ADOConnection1.ConnectionString;
with aquery do
begin
close;
SQL.Clear;
SQL.Add('select getdate() temdate');
open;
Edit1.Text:=aquery['temdate'];
end;end;
begin
close;
sql.Clear;
sql.Add('select getdate() as localtime');
open;
end;
showmessage(datetimetostr(adoquery1.fieldbyname('localtime').AsDateTime));