Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fcf92675b1 |
@@ -4,7 +4,7 @@
|
||||
-- 或由脚本拼接:
|
||||
-- echo "SET @shop_code='S001';" | cat - clear_shop.sql | mysql ...
|
||||
|
||||
SET @sid = (SELECT id FROM shops WHERE code = @shop_code LIMIT 1);
|
||||
SET @sid = (SELECT id FROM shops WHERE BINARY code = BINARY @shop_code LIMIT 1);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user