PIXNET Logo登入

阿勇的blog

跳到主文

歡迎光臨阿勇在痞客邦的小天地

部落格全站分類:

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 7月 24 週四 201416:55
  • 在SQL中,當二個鍵同時相等時,唯一鍵成立。

ALTER TABLE [dbo].[TABLE] ADD CONSTRAINT
UNIQUE_Table
UNIQUE CLUSTERED
(
col1
,
col2
)
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(1)

  • 個人分類:SQL
▲top
  • 3月 10 週一 201413:00
  • 關於mysqlnd cannot connect to MySQL 4.1+

一直遇到php連不上MySQL的問題
mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file
後來才發現原來是MySQL換密碼加密的方式,所以只要SET PASSWORD = PASSWORD('your_existing_password')
後來又發現要將SET SESSION old_passwords = 0;才行
詳細內容
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(19)

  • 個人分類:SQL
▲top
  • 3月 08 週六 201410:33
  • 更改MySql的DATETIME column

UPDATE `tablename` SET `time`=DATE_SUB(`time`, INTERVAL 3 HOUR) WHERE 1
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(2)

  • 個人分類:SQL
▲top
  • 11月 06 週三 201312:10
  • 清空SQL的表格


這是最好的方法,包跨會將auto increase清0
TRUNCATE TABLE tablename

這只是單純的清空
DELETE FROM tablename
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(1)

  • 個人分類:SQL
▲top
1

個人資訊

阿勇
暱稱:
阿勇
分類:
好友:
累積中
地區:

熱門文章

  • (0)Cordova速記
  • (0)Cordova run simulation
  • (5)swift速記
  • (1)cordova發布到andriod
  • (4)迷香
  • (11)notification results in “unrecognized selector sent to instance…”
  • (0)分開設定xcode的configureration
  • (10)關於doesNotRecognizeSelector引起的exception crash
  • (1)在SQL中,當二個鍵同時相等時,唯一鍵成立。
  • (56)防止繼承的delegate跟原本的衝突(how to extend a protocol for a delegate in objective C)

文章分類

  • 替代役的日子 (5)
  • 黑色鈣片 (4)
  • java (3)
  • picasa (1)
  • lua (1)
  • mingw (1)
  • nsis (1)
  • squirrel (1)
  • freetype (1)
  • bitmap font (7)
  • windows (5)
  • c (1)
  • NetBeans (2)
  • uml (1)
  • html5 (1)
  • Wheel Light (4)
  • Qt (26)
  • opengl (6)
  • chrome (2)
  • hg (2)
  • mac (4)
  • apns (1)
  • python (4)
  • php (2)
  • SQL (4)
  • iOS (3)
  • xcode (4)
  • Objective-C (8)
  • phonegap (1)
  • swift (1)
  • cordova (2)
  • 未分類文章 (1)

最新文章

  • Cordova速記
  • Cordova run simulation
  • swift速記
  • cordova發布到andriod
  • 迷香
  • notification results in “unrecognized selector sent to instance…”
  • 分開設定xcode的configureration
  • 關於doesNotRecognizeSelector引起的exception crash
  • 在SQL中,當二個鍵同時相等時,唯一鍵成立。
  • 防止繼承的delegate跟原本的衝突(how to extend a protocol for a delegate in objective C)

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: