摘要: 1 DECLARE t_error INTEGER DEFAULT 0; 2 DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET t_error=1; 3 START TRANSACTION; 7 ... 阅读全文
posted @ 2015-07-01 16:51 点点_滴滴 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1 var customers = db.Customers.Where(c => c.name=='小明');2 foreach (var customer in customers)3 {4 customer.Address = "Guangzhou";5 }6 db.SubmitCha... 阅读全文
posted @ 2015-07-01 16:49 点点_滴滴 阅读(558) 评论(0) 推荐(0) 编辑
摘要: boolean在MySQL里的类型为tinyint(1)很奇怪。 阅读全文
posted @ 2015-07-01 16:46 点点_滴滴 阅读(2003) 评论(0) 推荐(0) 编辑