随笔分类 -  MySQL

数据库
摘要:mysql安装使用博客https://blog.csdn.net/weixin_43605266/article/details/110477391 mysql安装https://blog.csdn.net/qq_38338409/article/details/122032644 mysql登录报 阅读全文
posted @ 2022-09-13 17:54 南瓜壳 阅读(12) 评论(0) 推荐(0) 编辑
摘要:SELECT t.*, a.`name` FROM `t_news` t LEFT JOIN t_category a ON t.category_id = a.category_id LIMIT 1,5 阅读全文
posted @ 2019-07-19 15:10 南瓜壳 阅读(1372) 评论(0) 推荐(0) 编辑
摘要:TRUNCATE TABLE 表名字; 让数据表清空数据并且id从0开始 阅读全文
posted @ 2019-03-08 13:20 南瓜壳 阅读(1535) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq1147093833/article/details/80624667 破解网址 阅读全文
posted @ 2019-02-28 15:15 南瓜壳 阅读(103) 评论(0) 推荐(0) 编辑
摘要:查询msgs表和users表中0-10条记录 $sql = "select msgs.id,msgs.title,users.name,msgs.time from msgs,users limit 0,10"; 像users数据表中插入数据 $sql = "insert into users(us 阅读全文
posted @ 2018-11-07 10:15 南瓜壳 阅读(135) 评论(0) 推荐(0) 编辑
摘要:<?php //获取url参数 $msgId = $_GET['id']; #var_dump($msgId); require_once("connect.php"); $sql = "select msgs.title,msgs.content,msgs.time,users.name from 阅读全文
posted @ 2018-11-06 12:00 南瓜壳 阅读(147) 评论(0) 推荐(0) 编辑
摘要:<?php //获取数据库中的所有留言 require_once("connect.php"); //执行数据库查询 $sql="select msgs.id,msgs.title,users.name,msgs.time from msgs,users where users.id = msgs. 阅读全文
posted @ 2018-11-06 10:37 南瓜壳 阅读(1549) 评论(0) 推荐(0) 编辑
摘要:<?php //获取数据库中的所有留言 require_once("connect.php"); //执行数据库查询 $sql = "select * from msgs"; $results = mysqli_query($link,$sql); //处理查询结果 while($row = mys 阅读全文
posted @ 2018-11-06 09:53 南瓜壳 阅读(6616) 评论(0) 推荐(0) 编辑
摘要:<?php$host="localhost"; //主机$db_user="root"; //用户名$db_pass="root"; //密码$db_name="message"; //数据库名$timezone="Asia/Shanghai"; $link=mysqli_connect($host 阅读全文
posted @ 2018-11-06 09:52 南瓜壳 阅读(150) 评论(0) 推荐(0) 编辑
摘要:1.mysqli_query() 函数执行某个针对数据库的查询。 用法:mysqli_query(connection,query,resultmode); connection 必需。规定要使用的 MySQL 连接。 query 必需,规定查询字符串。 2.mysqli_num_rows() 函数 阅读全文
posted @ 2018-11-05 15:53 南瓜壳 阅读(753) 评论(1) 推荐(0) 编辑
摘要:在mysql中存在着各种utf8编码格式,如下表: 1)utf8_bin 2)utf8_general_ci 3)utf8_general_cs utf8_bin将字符串中的每一个字符用二进制数据存储,区分大小写。 utf8_genera_ci不区分大小写,ci为case insensitive的缩 阅读全文
posted @ 2018-11-05 11:49 南瓜壳 阅读(715) 评论(0) 推荐(0) 编辑