DELETE orders_products, orders
FROM orders_products
INNER JOIN orders
ON orders_products.order_number = orders.order_number
WHERE orders.created < NOW() - INTERVAL 30 DAY
可能在mysql数据库中插入“ \”符号吗?我尝试将排序规则类型更改为UTF-8 General_ci,但不起作用,还有其他想法
答案 0 :(得分:1)
使用此
INSERT INTO `abc`(`info`) VALUES ('\\');
答案 1 :(得分:0)
一些同伴:
<?php
....
$abc = $_POST['info'];;
$aa = str_replace("\\",'\\\\',$abc);
$insert = "INSERT INTO `abc`(`info`) VALUES ('$aa')";
?>