阅读下面T-SQL语句,对变量赋值时存在错误的是( )(其中money为钱币数据类型,为其变量赋值可用或者不用$等货币符号)。
A: declare @id int ,@price money Set @id =100 Set @price=$2.21
B: declare @id int ,@price money Select @id=100,@price=2.21
C: declare @id int ,@price money set @id=100,@price=2.21
D: declare @id int ,@price money Select @id=100Select @price=$2.21
A: declare @id int ,@price money Set @id =100 Set @price=$2.21
B: declare @id int ,@price money Select @id=100,@price=2.21
C: declare @id int ,@price money set @id=100,@price=2.21
D: declare @id int ,@price money Select @id=100Select @price=$2.21
举一反三
- 阅读下面T-SQL语句,对变量赋值时存在错误的是(<br/>)。 A: DECLARE @var1 INT, @var2 MONEY SELECT @var1=100, @var2=$2.21 B: DECLARE @var1 INT, @var2 MONEYSELECT @var1=100SELECT @var2=$2.21 C: DECLARE @var1 INT, @var2 MONEY SET @var1=100, @var2=$2.21 D: DECLARE @var1 INT, @var2 MONEY SET @var1=100 SET @var2=$2.21
- 阅读下面T-SQL语句,对变量赋值时存在错误的是__________。 A: DECLARE @var1 int,@var2 moneySELECT @var1=100,@var2=$2.21 B: DECLARE @var1 int,@var2 moneySELECT @var1=$200.20,@var2=100 C: DECLARE @var1 int,@var2 moneySET @var1=100,@var2=$2.21 D: DECLARE @var1 int,@var2 moneySET @var1=100.20 SET @var2=$2.21
- 以下程序段哪段是正确的() A: declare id int default 0; repeat set id=id+1; end repeat;<br> until id>=10; B: declare id int default 0; repeat set id=id+1; end repeat;<br> until id>=10 C: declare id int default 0; repeat set id=id+1; until id>=10 end repeat; D: declare id int default 0; repeat set id=id+1; until id>=10; end repeat;
- 现有表 book,字段:id (int),title (varchar), price(float); 其中 id 字段设为主键,使用 insert 语句向 book 表中 插入数据,以下语句错误的是( )。 A: insert into book (id,title,price) values(1,'java',100) B: insert into book (title,price) values('java',100) C: insert into book values ('java',100) D: insert book values('java',100)
- 现有表book,字段:id(int),title(varchar),price(float);其中id字段设为主键,使用insert语句向book表中插入数据,以下语句正确的是 A: insert into book(title,price) values('java',100) B: c)insert into book values('java',100) C: insert book values('java',100) D: insert into book(id,title,price) values(1,'java',100)