将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. 空值
有以下程序代码,其中能输出name的是( )$conn = mysqli_connect('localhost','root','root','test');$result = mysqli_query($conn,'select id,name,sex from user where id=1');$data = mysqli_fetch_object($result);
A. $data ['name']
B. $data [1]
C. $data->name
D. $data[0]