请教apache 问题!!!
请问如何实现 http://xxx.xxx.xxx.xxx:8000/index.php ...
作者 wormbaby 发布于 0000-00-00 分类:php基础编程
例如:delete from table1 where id>9;
delete from table2 where id<5;
这两条语句应该如何连起来使用mysql_query()一次删除?
逛论坛交流:这两条语句应该如何连起来使用mysql_query()一次删除?
mysql 不支持事务吧?
违背了规则
PHP是脚本;
注定你是错误的
好像不行
到少要删除4个表而且其中有两个表中的字段有关联要用到where 里的and。和or 连用互不影响吗?
为什么这么 就可以:
$query="select * from msgboard order by date desc";
$query="$query limit 5";
$res=mysql_db_query("community",$query,$db);
I had broken the terrine!!!!
please help me !thank you very much.
不晓得这样行不行,没试过
delete from table1,table2 where table1.id>9 or table2.id<5;
各删各的,纬纱连起来删?毛病啊?
我想这样删:$de="delete from table1 where id>9";
$de="$de from table2 where id<5";
$result=mysql_query($de,$conn);
不可以吗?
$query="delete from talbe1 where id=".$_GET["id"].";";
$query="$query delete from talbe2 where id=".$_GET["id"];
echo "$query";//输出删除语句结果
$res=mysql_db_query("tb",$query,$db);
10 条回复
回复