四条SQL语句,简单实用很常用
插入语句:$sql=”insert into tb_admin(title,content,addtime) values (‘title’,'content’,'addtime’)”; 查询语句:$sql=”select * from tb_admin where title like ‘%$keyword%’ or content like’%&keyword%’ limit...
View ArticleSQL语句的添加、删除、修改使用方法
添加、删除、修改使用db.Execute(Sql)命令执行操作 查询操作 Sql = “Select Distinct 字段名 From 数据表” Distinct函数,查询数据库存表内不重复的记录 Sql = “Select Count(*) From 数据表 where 字段名1>#18:0:0# and 字段名1< #19:00# ”...
View Article
More Pages to Explore .....