MySQL与Access之语法区别 [ 网站地图 ]

发表于:2009-11-6 浏览:29 作者: 来源:站长资讯网

关键字:MySQL,Access,区别

描述:selectid,namefromtbl_studentwherescore>59orderbynamelimit25 上面这条SQL指令可以在MySQL上执行,但是在Access上运行会返回语法错误。在Access中,这条指令应该写成 select top25fromtbl_stu

select id,name from tbl_student where score>59 order by name limit 25

上面这条SQL指令可以在MySQL上执行,但是在Access上运行会返回语法错误。
在Access中,这条指令应该写成

select  top 25 from tbl_student where score>59 order by name

 


站长资讯网 做中国最丰富的资讯网站 沪ICP备05004089号