下面EL表达式中,只能使用[]运算符取值的是()(多选)
A: ${user["My-Name"]}
B: ${user["MyName"]}
C: ${user[0]}
D: ${user["hell?o"]}
A: ${user["My-Name"]}
B: ${user["MyName"]}
C: ${user[0]}
D: ${user["hell?o"]}
举一反三
- 关于点操作和"[]"操作符,以下说法不正确的是( ) A: ${user.name}等价于${user[name]} B: ${user.name}等价于${user["name"]} C: 如果user是一个List,则${user[0]}的写法是正确的 D: 如果user是一个数组,则${user[0]}的写法是正确的
- 【多选题】下面语句可以实现查询user表中“zhangsan”的user,password,logins信息的是 A. select logins,user,password from user where name like ’%zhangsan%’; B. select user,password,logins, from user where name like ’zhangsan’; C. select password,logins,user from user where name=’zhangsan’ limit 1; D. select user,password,logins from user where name=’zhangsan’;
- 下面哪个表达式不能获取user对象的username属性( )。 A: ${user['username'] } B: ${user[username] } C: ; D: ${user.username }
- [label for=”()”]会员账号:[/][input type=”text” name=”username” id=”user”]上面代码中,会员账号是文本框的标签。 A: input B: text C: username D: user
- 在tb_name表中创建一个名为name_view的视图,并设置视图的属性为name、pwduser,执行语句是什么?( ) A: CREATE VIEW name_view(name,pwd,user)AS SELECT name.pwd,user FROM tb_mame; B: SHOW VIEW name_view(name,pwd,user) AS SELECT name,pwd,user FROM tb_mame: C: DROP VIEW name_view(name,pwd,user) AS SELECT name,pwd,user FROM tb_mame: D: SELECT * FROM name_view(name,pwd,user) AS SELECT name,pwd,user FROM tb_ name: