![](https://img-blog.csdnimg.cn/20190927151132530.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
php
php应用
菜鸟M
甘于平凡却不甘于平凡的腐烂
展开
-
【php】php 里的sql语句 如何做加法
实例如下:更新数据表 table 中,id = 5 的一行中的number数据$sql="update table set number= number +'1' where id='5'";切记:不要这样 number+=1,这样我试了一下会报错相关论坛:https://bbs.csdn.net/topics/300060339...原创 2020-08-21 23:05:44 · 323 阅读 · 0 评论 -
【php】sql如何同时删除两表中相同的数据
1、删除删除表 table_a ,table_b中 id 为 $id 的数据(我要做的就是删除 a 表中 id = 1的数据时,同时也删除 b 表中 id = 1 的数据 )$sql="delete table_a,table_b from table_a,table_b where table_a.id=table_b.id AND table_a.id='$id'";...原创 2020-08-04 11:56:37 · 1716 阅读 · 1 评论 -
【php】sql 常用语句(持续更新)
1、判断登录相等2、注册3、查询数据表 A 中 一列与4、同时删除两个表中相同的数据原创 2020-07-01 10:08:30 · 856 阅读 · 0 评论 -
【php】如何在html导入php文件
1、可以直接在html写php代码2、通过iframe<iframe src="test.php" frameborder="0" scrolling="no" marginheight="10px"></iframe>3、通过 < script ><script src="test.php"></script>原创 2020-07-27 00:31:45 · 4514 阅读 · 0 评论