在线资源免费观看,欧美色偷偷大香,视频一区二区三区在线看免费看 http://www.aygfsteel.com/czmchen/category/40181.htmlzh-cnSat, 17 Apr 2010 00:15:35 GMTSat, 17 Apr 2010 00:15:35 GMT60查找表里重復的數(shù)據(jù)http://www.aygfsteel.com/czmchen/archive/2010/04/15/318433.html陳周敏陳周敏Thu, 15 Apr 2010 08:23:00 GMThttp://www.aygfsteel.com/czmchen/archive/2010/04/15/318433.htmlhttp://www.aygfsteel.com/czmchen/comments/318433.htmlhttp://www.aygfsteel.com/czmchen/archive/2010/04/15/318433.html#Feedback0http://www.aygfsteel.com/czmchen/comments/commentRss/318433.htmlhttp://www.aygfsteel.com/czmchen/services/trackbacks/318433.html
1 select * from tableName where tableName.id in (select max(tableName.id) from tableName group by tableName.name having count(tableName.id) >1 )




陳周敏 2010-04-15 16:23 發(fā)表評論
]]>
mysql建立UTF8數(shù)據(jù)庫http://www.aygfsteel.com/czmchen/archive/2009/06/10/281156.html陳周敏陳周敏Wed, 10 Jun 2009 06:47:00 GMThttp://www.aygfsteel.com/czmchen/archive/2009/06/10/281156.htmlhttp://www.aygfsteel.com/czmchen/comments/281156.htmlhttp://www.aygfsteel.com/czmchen/archive/2009/06/10/281156.html#Feedback2http://www.aygfsteel.com/czmchen/comments/commentRss/281156.htmlhttp://www.aygfsteel.com/czmchen/services/trackbacks/281156.html開發(fā)中用UTF-8開發(fā)就是標準的開發(fā)編碼,跨平臺下開發(fā),你就發(fā)現(xiàn)你的程序亂碼問題基本沒有,這就少給你帶來麻煩。
建立數(shù)據(jù)庫也不例外,我開發(fā)都習慣用編碼utf8來開發(fā)(注意:在數(shù)據(jù)庫中UTF-8就寫為utf8)

建立數(shù)據(jù)庫開發(fā)編碼為utf8就幾個地方而已

1。建立容器
2。連接

注意:有些人話你做啦這些工,還有一個地方要設置編碼,建立數(shù)據(jù)庫表時候還沒設置編碼呢?我在這說下,建立容器就不用做那啦,因為你容器編碼是utf8啦,表也是utf8,所以我就無做那個工啦!不過你想知道的話,我也提供方法,下面的就是表的編碼就是utf8的
CREATE TABLE IF NOT EXISTS test(
    test_id int auto_increment,
    test_name varchar(50)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;


步驟:
1。好啦,先來建立容器

create database if not exists test default character set utf8;

2。連接設置編碼為utf-8
在連接的時候加上
dao.drivername=com.mysql.jdbc.Driver
dao.url=jdbc:mysql://localhost:3306/asking?useUnicode=true&characterEncoding=UTF-8
dao.username=
dao.passwd=



陳周敏 2009-06-10 14:47 發(fā)表評論
]]>
更改 MySQL 數(shù)據(jù)庫目錄http://www.aygfsteel.com/czmchen/archive/2009/06/10/281151.html陳周敏陳周敏Wed, 10 Jun 2009 06:31:00 GMThttp://www.aygfsteel.com/czmchen/archive/2009/06/10/281151.htmlhttp://www.aygfsteel.com/czmchen/comments/281151.htmlhttp://www.aygfsteel.com/czmchen/archive/2009/06/10/281151.html#Feedback0http://www.aygfsteel.com/czmchen/comments/commentRss/281151.htmlhttp://www.aygfsteel.com/czmchen/services/trackbacks/281151.html 我就這樣做的~把MySQL 數(shù)據(jù)庫目錄放到其他的盤去,不放在默認的盤。

我安裝的數(shù)據(jù)庫是Mysql5.1,安裝目錄可能和其他的版本不同。

首先

1 .打開 cmd 命令提示符窗口,輸入命令:net stop mysql 停止 MySQL 服務運行;

2. 打開C:\Program Files\MySQL\MySQL Server 5.1\my.ini

找到:

Datadir = "C:\Documents and Settings\All Users\Application Data\MySQL\data"

修改為:

Datadir = "X:\MySQL\data" 這個是你自己想放的數(shù)據(jù)庫位置

3. 將 C:\Documents and Settings\All Users\Application Data\MySQL\data 文件夾復制到 X:\

4. 打開 cmd 命令提示符窗口,輸入命令:net start MySQL 啟動 MySQL 服務。

5.重新測試 MySQL 是否工作正常。



陳周敏 2009-06-10 14:31 發(fā)表評論
]]>
主站蜘蛛池模板: 财经| 辽阳市| 尚义县| 汝阳县| 隆昌县| 永年县| 潍坊市| 田林县| 修文县| 南靖县| 都昌县| 项城市| 江孜县| 体育| 综艺| 城步| 兰州市| 阿拉善盟| 阳西县| 安岳县| 新干县| 峨山| 乌拉特后旗| 怀远县| 桐城市| 清涧县| 漳浦县| 澎湖县| 崇文区| 西昌市| 兴隆县| 沅江市| 昌吉市| 铅山县| 宾阳县| 兰州市| 敦煌市| 邯郸县| 调兵山市| 界首市| 香格里拉县|