Function list_data()
Dim strsql As String
strsql = "select [id], [c_id], [t_id], [u_id], [u_name], [tim],[bumen],[apply_tim], [type], [caigou_name], [caigou_type], [danwei], [num], [yongtu],[beizhu]"
strsql += "from [Purchase_linshi_biao_fu] where [tim]='" & FormatDateTime('yyyymmdd hh', Now) & "'and [bumen]='" & group() & "' and [type]='" & caigou_type() & "' order by [id] desc"
conn.Bind_samp_grid(strsql, dgfind)
End Function
我只要年月日时,但是单引号不可用,请教有才的高手们!谢谢! 是vs2003 windows2003 sql2000
Dim strsql As String
strsql = "select [id], [c_id], [t_id], [u_id], [u_name], [tim],[bumen],[apply_tim], [type], [caigou_name], [caigou_type], [danwei], [num], [yongtu],[beizhu]"
strsql += "from [Purchase_linshi_biao_fu] where [tim]='" & FormatDateTime('yyyymmdd hh', Now) & "'and [bumen]='" & group() & "' and [type]='" & caigou_type() & "' order by [id] desc"
conn.Bind_samp_grid(strsql, dgfind)
End Function
我只要年月日时,但是单引号不可用,请教有才的高手们!谢谢! 是vs2003 windows2003 sql2000
解决方案 »
- delphi界面层是不是做界面跟用户登陆的
- delphi高手进来修改一下
- 能否暂停正在对话的ClientSocket,ClientSocket与服务器正在连接对话,
- 数据库问题?等待ing!
- (ado连库adoquery查询)label控件可以显示数据库中的字段内容吗? 怎样实现?怎样只显示一条记录内容(不用grid件,自己做显示界面)?
- 有谁知道chinacode的类???加分!!!
- ADOQuery查询Access 数据表居然要3分钟???
- webbrowser组件点击一个链接后 窗体自动全屏怎么实现?
- 帮帮忙啊!!!!
- 请问Sql server中BLOB(image)类型的数据怎样通过Delphi添加进数据库???
- 线程出错问题
- sqlserver 作业执行中 报错 :不允许启动新事务,因为有其他线程正在该会话中运行
但好像mssql 2000并没有内置此函数
可以自定义一个,参考这里PS:SQL语句里的函数连同SQL语句本身一起都是在DBMS中执行的,和编程语言的函数是两回事