/****** Object: StoredProcedure [dbo].[GET_TableScript_MYSQL] Script Date: 06/15/2012 13:05:14 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO /*============================================================== 名称: GET_TableScript_MYSQL 功能: 生成单…
Case Sensitive Check 1. Return names contain upper case Select id, name from A where name<>lower(name) collate SQL_Latin1_General_CP1_CS_AS 2. Return same name but diff case Select id, A.name, B.name from A inner join B on A.name=B.name where A.name…
C#读取MySql时,如果存在字段类型为date/datetime时的可能会出现以下问题“Unable to convert MySQL date/time value to System.DateTime” 原因:可能是该字段(date/datetime)的值默认缺省值为:0000-00-00/0000-00-00 00:00:00,这样的数据读出来转换成System.DateTime时就会有问题: 解决办法:1.将该字段的值是0000-00-00/0000-00-00 00:00:00的情况…
http://hongmin118.iteye.com/blog/2029728 转的 MySQL 的CAST()和CONVERT()函数可用来获取一个类型的值,并产生另一个类型的值.两者具体的语法如下: CAST(value as type); CONVERT(value, type); 就是CAST(xxx AS 类型), CONVERT(xxx,类型). mysql> SELECT CAST('3.35' AS signed); +------------------------+ |…