0
我試圖插入行MySQL數據庫和我得到這個錯誤。實體框架和MySQL無法插入
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT
`groups_users`.`groupID`,
`groups_u' at line 1
守則是
groups_users ug = new groups_users();
ug.groupID = 1;
ug.userID = 1;
ug.isDeleted = false;
ug.created = DateTime.Now;
ctx.groups_users.Add(ug);
ctx.SaveChanges();
感謝
你能顯示代碼的大背景下(含方法) –
喜亞歷克斯Zheludov我也收到同樣的錯誤,在這裏你可以請告訴我這裏的例子,你是如何解決的? – user123