谁给看看它说在第二行关键字 'on' 附近有语法错误.我怎么改啊create database libraryon (name=librarydata,filename ='d:\sql2\librarydata.mdf')log on (name='librarylog',filename='d:\sql2\librarylog.ldf')
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/27 06:21:59
谁给看看它说在第二行关键字''on''附近有语法错误.我怎么改啊createdatabaselibraryon(name=librarydata,filename=''d:\sql2\librarydata
谁给看看它说在第二行关键字 'on' 附近有语法错误.我怎么改啊create database libraryon (name=librarydata,filename ='d:\sql2\librarydata.mdf')log on (name='librarylog',filename='d:\sql2\librarylog.ldf')
谁给看看它说在第二行关键字 'on' 附近有语法错误.我怎么改啊
create database library
on
(name=librarydata,
filename ='d:\sql2\librarydata.mdf'
)
log on
(name='librarylog',
filename='d:\sql2\librarylog.ldf'
)
谁给看看它说在第二行关键字 'on' 附近有语法错误.我怎么改啊create database libraryon (name=librarydata,filename ='d:\sql2\librarydata.mdf')log on (name='librarylog',filename='d:\sql2\librarylog.ldf')
name=librarydata少单引号,应该是
create database library
on
(name=‘librarydata’,
filename ='d:\sql2\librarydata.mdf'
)
log on
(name='librarylog',
filename='d:\sql2\librarylog.ldf'
)
试下吧