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
解决方案 »
- 关于指针
- 我想请问各位,cxgrid得到当前行和当前列的函数是啥?好比dxgrid的FocusedColumn
- 做医疗软件的进来看看,散分了。
- 高分有人有转发程序吗???
- 如何將記錄指向最後一條?(adoquery)
- 怎么从结构文件中读出中文字符呢?
- 通过ODBC C API 访问Sql SERVER数据库问题,不想通过odbc数据源名称来访问
- 请问这个数据库连接怎么连??????
- 怎么将MediaPlayer1放映的东西最大化(满屏)?
- 请问下众位大神们,如何通过编程的方式来控制IIS7.5,操作系统是Windows 2008 Server
- 线程出错问题
- sqlserver 作业执行中 报错 :不允许启动新事务,因为有其他线程正在该会话中运行
但好像mssql 2000并没有内置此函数
可以自定义一个,参考这里PS:SQL语句里的函数连同SQL语句本身一起都是在DBMS中执行的,和编程语言的函数是两回事