摘要:
<?php // 连接数据库 方法一 $con = new mysqli('localhost', 'root', 'root', 'text'); if ($con->connect_error) { die('连接失败' . $con->count_error); } //方法二 /* $con 阅读全文
posted @ 2020-06-05 22:50
卡卡C哦
阅读(182)
评论(0)
推荐(0)
摘要:
exists 存在 engine 引擎 comment注释创建数据库时,如果数据库已经存在就报错那就创建数据库的时候,判断数据库是否存在,不存在就创建create database if not exists student; 特殊字符,关键字做数据库名,使用反引号将数据库名括起来create da 阅读全文
posted @ 2020-06-05 22:48
卡卡C哦
阅读(129)
评论(0)
推荐(0)
浙公网安备 33010602011771号