mysql數據庫,庫名以目錄名存在,表名以文件名(后綴為.frm.MYD.MYI)存在。
如test庫下user表,在windows中%mysql_home%\data\test\user.frm,windows文件名大小寫不敏感,
無論是 select * from test.user 還是 select * from test.USER,都是沒有問題的。
而在linux中/var/lib/mysql/test/user.frm,
如果是 select * from test.user 就必須存在 user.frm
如果是 select * from test.USER 就必須存在 USER.frm
這是兩個不同的文件,也是兩個不同的表名。
同樣庫名是以目錄存在,也存在區分大小寫的問題。
相關的官方文檔:
http://dev.mysql.com/doc/refman/5.1/en/identifier-case-sensitivity.htmlhttp://dev.mysql.com/doc/refman/5.1/zh/language-structure.html#name-case-sensitivity
posted on 2007-01-29 09:40
rox 閱讀(1673)
評論(2) 編輯 收藏 所屬分類:
Mysql