MySql
xzuse963
这个作者很懒,什么都没留下…
展开
-
(转)mysql 在update中实现子查询的方式
---测试代码--------------- drop table if exists tb;create table IF NOT EXISTS tb (Name varchar(10),Time1 datetime,Time2 datetime,Time3 varchar(8),Time4 varchar(8) );insert tb (name,time1,time2)select '...原创 2011-04-20 15:25:56 · 215 阅读 · 0 评论 -
(转)MySQL存储过程例子,包含事务,参数,嵌套调用,游标,循环等
MySQL存储过程例子,包含事务,参数,嵌套调用,游标,循环等,阅读MySQL存储过程例子,包含事务,参数,嵌套调用,游标,循环等,view plaincopy to clipboardprint?drop procedure if exists pro_rep_shadow_rs; delimiter | ------------------------------- view ...原创 2011-04-20 18:57:23 · 91 阅读 · 0 评论 -
(转)MySQL中利用存储过程分割字符串的方法
现有一段字符串,如apple,banana,orange,pears,grape,要把它按照逗号(,)分割成: apple banana orange pears grape 然后使用where in()方法可以查询。 1、具体函数: # 函数:func_split_TotalLength DELIMITER $$ DROP function IF EXISTS `...原创 2011-04-20 18:58:30 · 322 阅读 · 0 评论 -
Ubuntu mysql 不能远程连接的问题 (转载)
Ubuntu10.04上自带的MySQL,执行了root@ubuntu:~#sudo apt-get install mysql安装完mysql-server 启动mysqlroot@ubuntu:~#/etc/init.d/mysql start 本地可以连接进入数据库。root@ubuntu:~#mysql -uroot -p 设置了远程访问权限:mysql&...原创 2011-04-07 11:27:54 · 140 阅读 · 0 评论 -
编码相关
1. MySql 编码 show variables like '%char%'; character_set_client utf8 character_set_connection utf8 character_set_database utf8 character_set_filesystem binary character_set_results utf8 cha...原创 2014-02-25 12:16:45 · 133 阅读 · 0 评论