对以下sql语句描述正确的是( )update user set name='张三'
A. 修改用户第一条数据将name改为张三
B. 修改用户最后一条数据将name改为张三
C. 修改所有数据将name改为张三
D. 执行出错
查看答案
将user表name为“张三”的pass修改为“222”,正确的sql是()
A. update user set name='张三'
B. update user set pass='222'
C. update user set name='222' where name='张三'
D. update user set pass='222' where name='张三'
修改信息时表单要先获取该条信息的数据,不能使用以下哪个函数()
A. mysqli_fetch_array()
B. mysqli_fetch_row()
C. mysqli_fetch_object()
D. mysqli_num_rows()
以下程序代码的输出结果为( )$conn = mysqli_connect('localhost','root','root','test');$result = mysqli_query($conn,'select id,name,sex from user where id=1');$data = mysqli_fetch_array($result);echo $data['id'];
A. 1
B. 2
C. 3
D. 4
以下程序代码的输出结果为( )$conn = mysqli_connect('localhost','root','root','test');$result = mysqli_query($conn,'select id,name,sex from user where id=1');$data = mysqli_fetch_array($result);echo $data[0];
A. 1
B. 2
C. 0
D. 空值