摘要:
直接贴代码了: 代码来自于:https://github.com/jianxuanbing/Bing 谢谢浏览! 阅读全文
随笔分类 - [21] MySQL
(转)MySQL中char(36)被认为是GUID导致的BUG及解决方案
2013-12-27 16:25 by 音乐让我说, 298 阅读, 收藏, 编辑
摘要:
有时候在使用Toad或在程序中,偶尔会遇到如下的错误:System.FormatExceptionGUID 应包含带 4 个短划线的 32 位数(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)。Stack Trace: 在 System.Guid..ctor(String g) 在 MySql.Data.Types.MySqlGuid.MySql.Data.Types.IMySqlValue.ReadValue(MySqlPacket packet, Int64 length, Boolean nullVal) 在 MySql.Data.MySqlClient.Na 阅读全文
安装 MySql Membership 用 Visual Studio 2010
2013-01-15 17:41 by 音乐让我说, 427 阅读, 收藏, 编辑
摘要:
IntroductionThis article will help in setting up the MySql membership provider with Visual Studio 2010.BackgroundMembership provider will help in automatically setting up the login functionality that comes with .NET Framework.PrerequisitesMySql server should be installed on the local machine or on t 阅读全文
My SQL 使用小记
2012-07-27 08:29 by 音乐让我说, 636 阅读, 收藏, 编辑
摘要:
以下是我自己整理的 MySQL 小记,方便下次温习。 MySQL 学习 Pdf 文档(Fish li):点击下载 阿里巴巴 Java 开发手册(里面有 MySQL 规范):点击下载 1. My SQL 连接字符串,如果是连接本地的话:Server=localhost;Database=HelloWo 阅读全文
(转)MySQL用存储过程实现递归查询(一)
2012-06-05 18:05 by 音乐让我说, 275 阅读, 收藏, 编辑
摘要:
转载自:http://www.cnblogs.com/sunss/archive/2011/06/14/2080617.htmldrop table if exists employee; create table employee ( emp_id smallint unsigned not null auto_increment primary key, name varchar(32) not null, boss_id smallint unsigned null, key boss_id_idx(boss_id) )engine = innodb; insert into em... 阅读全文
(转)MySql与SqlServer的一些常用用法的差别
2011-08-22 17:32 by 音乐让我说, 470 阅读, 收藏, 编辑
摘要:
由于工作的原因:上家公司的数据库全采用MySql,所以不得不用它。因此也学到了MySql的一些知识,但考虑到今后可能没机会使用了,所以想趁现在离职在家休息,打算把这些东西整理一下,也为了万一今后能用上,留个参考的资源。考虑到一直在使用SqlServer,所以就打算直接与SqlServer对比来写。本文将主要列出MySql与SqlServer不同的地方,且以常用的存储过程的相关内容为主。1. 标识符限定符SqlServer[]MySql``2. 字符串相加SqlServer直接用 +MySqlconcat()3. isnull()SqlServerisnull()MySqlifnull()注意: 阅读全文