假设书名的字段为“BN”,要查找数据库中书名包含“数”的所有图书信息,需要用的命令是BN like '____'。
查看答案
完成以下语句,查询SCInfo(Stid,CNo,Score)表中成绩为85或者88的记录。(注:使用大写字母答题)select * from SCInfo where Score=85 _____ Score=88.
若要找出关系R中B属性值包含字符'h'的所有元组,选择子句的WHERE后应表达为B LIKE '_h_'。
A. 对
B. 错
若要求查找‘李’姓学生的学生号和姓名,对应的SQL语句是SELECT S#,SNAME FROM S WHERE SNAME LIKE ‘李%’。
A. 对
B. 错
8.1在横线上填上适当的语句,使程序能正常运行。class Test{【1】float fl;【2】{num=1;f1=2.0f;}public int getint(){return num;}public float getfloat(){return fl;}}class Demo{public static void main(String []args){{ 【3】t=new Test();System.out.print(t.getint()+” “+t.getfloat());}运行结果为:1 2.0