• 2022-06-17
    假设有一个数据库db_shop中有一个表tb_shop,表中有5个字段,主键为id,有20条记录,id从0到19,以下代码输出结果是( )。$conn = mysqli_connect("localhost", "root", "111", "db_shop");mysqli_query($conn,"set names utf8");$result=mysqli_query($conn,"select * from tb_shop where id<;6");$nums=mysqli_num_rows($result);echo $nums;
    A: 0
    B: 4
    C: 5
    D: 6
  • 举一反三