原创 Windows下echo內容包括>的解決辦法

在Windows下,很多人在糾結怎麼echo一個大於號,使用單引號不行,使用雙引號會把雙引號也一起輸出,我的解決辦法是使用^作爲轉義字符,例如需要輸出如下內容: abc>def 則echo命令如下: echo abc^>def

原创 mysql alter table drop constraint 報錯1064

mysql刪除外鍵方法: 1、不支持直接刪除約束:alter table t drop constraint 外鍵名; 2、只支持分步刪除: a、先刪除外鍵:alter table t drop foreign key 外鍵名; b、再刪