第一个消息很明显:
和第二个语句:
create procedure AddLesn @lesn int
as
alter table StuGrd
add @lesn int null
go
只能作为批量语句中的第一句来执行,就是不能放在use student1
之后...//创建存储过程、或创建视图、或创建触发器语句块在批量语句中必须作为第一句.
和第二个语句:
create procedure AddLesn @lesn int
as
alter table StuGrd
add @lesn int null
go
只能作为批量语句中的第一句来执行,就是不能放在use student1
之后...//创建存储过程、或创建视图、或创建触发器语句块在批量语句中必须作为第一句.
解决方案 »
- WebClient的DownloadFileAsync没有触发DownloadProgressChanged与DownloadFileCompleted
- VS2008+SQL2005开发的程序,如果数据库转移到SQL2000上会不会出问题
- 高手帮忙:一段VB代码转成C#代码
- 有北京的吗?手把手互助下,想学学压力测试
- 请教arraylist问题,困扰几天
- 文本框设焦点的方法是什么(找不到)
- 一个百思不得其解的问题,大家来看看!
- 文章再网页中的显示问题?在线等待........急
- 局域网数据库访问碰到的问题
- 串口接收事件声明方法和地点
- C# 调用Word组件出错,请高手帮忙,急!
- 利用C#编程实现对远程服务器进程管理
1.
use student12.
create procedure AddLesn @lesn int
as
alter table StuGrd
add @lesn int null
as
alter table StuGrd
add @Lesn int null
服务器: 消息 170,级别 15,状态 1,过程 AddLesn,行 4
第 4 行: '@Lesn' 附近有语法错误。
哪个地方错了?
create procedure AddLesn
(
@Lesn nvarchar(20)
)
as
alter table StuGrd
add @Lesn int null