四条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 0,30″;
更新语句:$sql=”update tb_admin set title=’$title’,content=’$content’ where id=$id”
删除语句:$sql=”delete tb_admin where id=$id041187180721

原文链接:,转发请注明来源!

发表评论