ACCESS MSSQL 区别以及ASP+ACCESS 和 ASP+MSSQL语法区别

yueye0824 2008-12-05 02:55:37
对于MSSQL 我只知道没有自动ID

我学的是ASP+ACCESS 老师只稍带讲了一点 ACCESS和MSSQL连接方式以及自动ID问题

假如 我现在想把ACCESS数据库 转换成 MSSQL 那么 我ASP语句需要做哪些改动?

举例:
<%
set rs=Server.CreateObject("adodb.recordset")
sql="select * from news order by id desc"
rs.open sql,conn,1,1
if not rs.eof and not rs.bof then
while not rs.eof
%>
<%=rs("title")%><br>
<%
rs.movenext
wend
end if
rs.close
set rs=nothing
%>

举例2:
<%
set rs=conn.execute("select * from news order by id desc")
if not rs.eof and not rs.bof then
while not rs.eof
%>
<%=rs("title")%><br>
<%
rs.movenext
wend
end if
rs.close
set rs=nothing
%>

这俩 用MSSQL连接 应该怎么改写 谢谢 请指教。 谢谢谢谢 十分感谢。
...全文
63 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lobster_lshj 2008-12-05
  • 打赏
  • 举报
回复
上面这个基本不用修改
区别大的就是日期格式不同。和一些日期函数不同,一些函数不一样
例如
access sql
now() getdate()
#1900-1-1# '1900-1-1'
...
还很多
yueye0824 2008-12-05
  • 打赏
  • 举报
回复
饿。。。。米有人鸟我。。。

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧