关系模式department(code,name)、employee(code,name,sex,dept,phone),查询“研发部”的员工信息,查询结果包括code,name,sex,phone,正确的语句是()
A: selectcode,name,sex,phonefromemployeewheredept=’研发部’;
B: selectcode,name,sex,phonefromemployeeem,departmentdewherede.code=em.deptandde.dept=’研发部’;
C: selectcode,name,sex,phonefromemployeeem,departmentdewherede.code=em.codeandde.name=’研发部’;
D: Selectem.code,name,sex,phonefromemployeeem,departmentdewherede.code=em.deptandde.name=’研发部’;
A: selectcode,name,sex,phonefromemployeewheredept=’研发部’;
B: selectcode,name,sex,phonefromemployeeem,departmentdewherede.code=em.deptandde.dept=’研发部’;
C: selectcode,name,sex,phonefromemployeeem,departmentdewherede.code=em.codeandde.name=’研发部’;
D: Selectem.code,name,sex,phonefromemployeeem,departmentdewherede.code=em.deptandde.name=’研发部’;
举一反三
- 从语法上看,以下语句哪个是正确的?() A: select name,code from zufang where code=’BJYZ91876799’; B: load data local inpath’/data/alldatas’ into table tb4; C: from zufang select name,code where code=’BJYZ91876799’; D: from zufang where code=’BJYZ91876799’ select name,code;
- def f(): st["name"]="x" st={"name":"a","sex":"male"} f() print(st["name"],st["sex"]) 结果是
- 下列结构体的定义正确的是( )。 A: student { int num; char name[10]; char sex; }; B: struct student { int num; char name[10]; char sex; } C: struct student { int num; char name[10]; char sex; }; D: struct student { int num char name[10] char sex };
- 页面中有一个性别单选按钮,请设置“男”为选中状态。代码如下:<;input type="radio" name="sex">; 男<;input type="radio" name="sex">; 女正确的是( ) A: $("sex[0]").attr("checked",true); B: $(" C: sex[0]").attr("checked",true); D: $("[name=sex]:radio").attr("checked",true); E: $(":radio[name=sex]:eq(0)").attr("checked",true);
- “性别”英文单词 A: sex B: name