price BETWEEN 50 AND 100 等价于 price>50 AND price<100。( )
举一反三
- 检查约束中,要求价格大于20,表达式为()。 A: …… check (price >20) B: …… check (price <30) C: …… check (price between 20 and 30) D: 都不是
- 查询图书价格在30到50之间的图书名、作者和出版社,其中的查询条件表达式为() A: where price>;=30 AND price<;=50 B: where price>;=30 OR price<;=50 C: where priceBETWEEN 30 AND 50 D: where priceBETWEEN50 AND 30
- 分析以下SQL 命令: SELECT price FROM inventory WHERE price BETWEEN 1 AND 50 AND (price IN(55, 30, 95); 命令执行后的输出结果是:() A: 55 B: 30 C: 95 D: NULL
- 阅读下面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
- 分析以下SQL命令: SELECT price FROM inventory WHERE price BETWEEN 1 AND 50 AND (price IN(55, 30, 95); 命令执行后的最可能的输出结果是( ) A: 55 B: 30 C: 95 D: 51