根據(jù)mysql數(shù)據(jù)庫結(jié)構(gòu)生成源碼主要包括兩部分。第一、獲取數(shù)據(jù)庫信息。第二、更具模板生成源碼。
獲取數(shù)據(jù)庫表信息的sql:SHOW TABLE STATUS like tablename
獲取數(shù)據(jù)庫列信息的sql:SHOW FULL COLUMNS FROM tablename
@Source:
@Author:zlong
posted on 2013-11-10 01:58
jidebingfeng 閱讀(79)
評論(0) 編輯 收藏