摘要: 1.创建唯一属性的字段名(不是主键也可以添加 如下:) 创建查询 : ALTER TABLE `表名` ADD UNIQUE (`字段名`) 2.creat_time 自动生成 把creat_time 的默认值 写成 CURRENT_TIMESTAMP 类型是timestamp。添加数据的时候自动生 阅读全文
posted @ 2020-12-17 10:56 79524795 阅读(116) 评论(0) 推荐(0) 编辑
摘要: SELECT * FROM `t_tb_youxuan` where id >1 and id <1000 and cate like '%女%' ORDER BY id asc LIMIT 30 表名 条件1 条件2 模糊查询 by-id的 倒序 截取从1到20条 select * from tm 阅读全文
posted @ 2020-11-24 18:46 79524795 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 1增 1.1【插入单行】 insert [into] <表名> (列名) values (列值) 例:insert into Strdents (姓名,性别,出生日期) values ('开心朋朋','男','1980/6/15') 1.2【将现有表数据添加到一个已有表】 insert into < 阅读全文
posted @ 2020-11-24 17:48 79524795 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 一,json_encode() 意思是将对象,数组的数据格式转换为json格式的数据 $arr=[ 'apple'=>'1', 'orange'=>'2', 'banana'=>'3' ]; //把数组转成json格式 echo json_encode($arr); 二,json_decode() 阅读全文
posted @ 2020-11-07 13:55 79524795 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1.下载框架 必须要有composer (composer镜像必须是国内的,网上直接搜composer镜像) 进入自己创建好的D:\webserver\www\tp6 目录,输入composer create-project topthink/think tp 慢慢等待下载安装成功,根据网速2.创建 阅读全文
posted @ 2020-11-07 13:09 79524795 阅读(808) 评论(0) 推荐(0) 编辑
摘要: 1. 下载安装 小皮面板解决搭建! 阅读全文
posted @ 2020-09-03 16:53 79524795 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 链接:https://pan.baidu.com/s/10wW7Xglpr6Rp_VS2M4_XOQ 提取码:th68 阅读全文
posted @ 2020-08-31 11:16 79524795 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1.配置电脑系统环境变量 在系统变量/Path中,添加 D:\webserver\php\php739 D:\webserver\php\php739\ext两行即可 2.Apache虚拟主机配置 先开启Apache的重定向,Apache配置文件httpd.conf,搜索: LoadModule r 阅读全文
posted @ 2020-08-31 11:08 79524795 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.单像素边框css表格 源代码: <style type="text/css"> table.gridtable { font-family: verdana,arial,sans-serif; font-size:11px; color:#333333; border-width: 1px; b 阅读全文
posted @ 2020-08-21 08:58 79524795 阅读(3087) 评论(0) 推荐(0) 编辑
摘要: 1.要求 环境变量 系统 环境变量 path中添加D:\webserver\mariadb\mariadb104\bin2. 管理员 进入CMD 进入 D:\webserver\mariadb\mariadb104\bin; 输入 mysqld.exe --install amdb 创建服务器名字为 阅读全文
posted @ 2020-05-28 09:17 79524795 阅读(377) 评论(0) 推荐(0) 编辑