单项选择题
家庭住址最好采用()数据类型进行存储。
A.Char/Nchar
B.text/Ntext
C.Varchar/Nvarchar
D.Char2/Nchar2
点击查看答案&解析
相关考题
-
单项选择题
Sql server提供了一些系统函数,以下说法错误的是()。
A.selectdatalength(‘abcde’)返回值为:5
B.selectconvert(char(3),12345) ;返回值为:123
C.selectconvert(char(5),12345) ;返回值为:12345 -
单项选择题
假设订单表orders用来存储订单信息,cid代表客户编号,money代表单次订购额,现要查询每个客户的订购次数和每个客户的订购总金额,下面()sql语句可以返回正确结果。
A.select cid,count(distinct(cid)),sum(money) from orders group by cid
B.select cid,count(distinct(cid)),sum(money) from orders order by cid
C.select cid,count(cid),sum(money) from orders order by cid
D.select cid,count(cid),sum(money) from orders group by cid -
单项选择题
定义列中可以接受的数据值或格式,称为()。
A.唯一性约束
B.检查约束
C.主键约束
D.默认约束
