• 2022-06-05
    阅读下面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
  • C

    举一反三

    内容

    • 0

      阅读下面T-SQL语句,对变量赋值时存在错误的是( )。 A: DECLARE @rs INT,<br/>@ms MONEY SET @rs=9245 SET @ms=$3.23 B: DECLARE @rs INT,<br/>@ms MONEY SELECT @rs=9245,<br/>@ms=$3.23 C: DECLARE @rs INT, @ms MONEYSELECT @rs=9245SELECT @ms=$3.23 D: DECLARE @rs INT,<br/>@ms MONEYSET @rs=786,<br/>@ms=$3.23

    • 1

      下列选项中与“WHERE (id,price)=(3,1999)”功能相同的是( ) A: WHERE id=3 || price=1999 B: WHERE id=3 &amp;&amp; price=1999 C: WHERE (id,price)&lt;&gt;(3,1999) D: 以上选项都不正确

    • 2

      下列选项中与“where(id,price)=(3,1999)”功能相同的是( ) A: where id=3||price+1999 B: where id=3&amp;&amp;price=1999 C: where(id,price)<;>;(3,1999) D: 以上选项都不正确

    • 3

      页面中有一个ID为price的层,并且有一个ID选择器price用来设置层price的样式,在IE浏览器中运行此页面,下面()能正确获取层的背景颜色. A: document.getElementById(“price”).currentStyle.backgroundColor B: document.getElementById(“price”).style.backgroundColor C: document.getElementById(“price”).currentStyle.background-color D: document.getElementById(“price”)

    • 4

      现有表book,属性为:id(int),title(nvarchar(10)),price(numeric(6,2)),其中id为identity列,使用insert语句想book中插入数据,以下语句错误的是( ) A: Insert book(id,title,price) values (1,’java’,56.3) B: Insert book(title,price) values (’java’,56.3) C: Insert book values (’java’,56.3) D: Insert book values (’java’,56)