易截截图软件、单文件、免安装、纯绿色、仅160KB
热门标签: c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 最新文章 :

sql查询问题

sql数据库里面有一个字段(sendTime),字段类型为默认的时间格式。
问题:怎样从数据库查看 sendTine 字段为最新的更新的,只现实最新的更新数据。
最新也要有个时间段吧?!

max(sendTime)

SQL code:
select top ( 你想显示的数目) *
from table
where (条件)
order by sendTime desc

最新是指sendtim ......

sql语句出错

sql="select * from mastermail  where time > "&starttime&" and time < "&endtime&"  order by id desc "
数据库中有数据,却显示不出来
还得跟日期关联才能选出正确的结果吧

如果time是文本字段
VBScript code:

sql="select * fro ......

sql select 优化

问题:
以前同事写的 存储过程A ,功能是 统计信息(里面有select 语句)并插入到 表A里
存储过程A 结果(1):
列1 列2 列3 列4
a  b  c  d

我现在要再写一个存储过程X 调用A(好多像A这样的存储过程)

在程序中 调用X 好慢,在查询分析器里调用,返回好多像(结果1) 的信息 ......

SQL语句

time1=format(now,"hh:mm:ss")
fromtime,totime

sCmd = "Update Tables Set SiteStatus=1 Where TableName In (Select TableName from tableBook Where BookDate='" & Format(Now, "yyyy-mm-dd") & "' And DatePart=" & tmpDatePart & " ......

sql参数问题

我用的是sqlserver ,现在有个已知的带参数的sql语句
如下:
insert into a(id,name......) values(:id,:name....)参数数量不定,名称也不定
请问如何将值写到参数中。

望指点。。。C#写就可以了。。
正则判断 @ .之间的名字..循环添加参数...

谢了zgke,请问有没有直接用数组作为参数直接对应呢。 ......

求救SQL问题

select CBM_YM as 年月,CBM_City as城市,sum(CBM_PilCount) as 总数,sum(CBM_EngrossCount) as 占用数  from dbo.PIL_CountByMonth
group by CBM_YM,CBM_City

出来的数据结构为

年月        城市  总数  占用数
2009-9      北京    4& ......
总记录数:27572; 总页数:4596; 每页6 条; 首页 上一页 [4294] [4295] [4296] [4297] 4298 [4299] [4300] [4301] [4302] [4303]  下一页 尾页
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号