900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > php生成mysql的数据字典

php生成mysql的数据字典

时间:2020-02-14 10:24:47

相关推荐

php生成mysql的数据字典

php教程|PHP源码

php生成mysql的数据字典

php教程-PHP源码

跳至

[1]

拼车网 源码,vscode新建js文件,ubuntu无法编译,tomcat实现登录实例,网络爬虫遇到的反爬虫问题,flash php通信,湖北seo优化使用方法,源码下载的网站都有哪些,ecshop免费商业模板lzw

[全屏预览]

<?php header(content-type:text/html;charset=utf-8); define(DB_HOST,localhost); define(DB_USER, oot); define(DB_PASS, oot); define(DB_NAME, est); define(DB_PORT,3306); define(DB_CHAR,utf8); define(APPNAME,\); $conn=mysql_connect(DB_HOST.:.DB_PORT,DB_USER,DB_PASS); mysql_select_db(DB_NAME); mysql_query(set names . DB_CHAR); $sql="SHOW TABLE STATUS FROM " . DB_NAME; $result=mysql_query($sql); $array=array(); while($rows=mysql_fetch_assoc($result)){ $array[]=$rows; } // table count $tab_count = count($array); echo .APPNAME.--数据字典table caption, table th, table td {padding: 0.1em 0.5em 0.1em 0.5em;margin: 0.1em;vertical-align: top;}th {font-weight: bold;color: black;background: #D3DCE3;}table tr.odd th, .odd {background: #E5E5E5;}table tr.even th, .even {background: #f3f3f3;}.db_table{border-top:1px solid #333;}.title{font-weight:bold;}

.APPNAME.--数据字典

(注:共.$tab_count.张表,按ctrl+F查找关键字)

."\n"; for($i=0;$i<$tab_count;$i++){ echo \."\n"; echo ; echo ($i+1).、表名:[ . $array[$i][Name] . ]注释: . $array[$i][Comment]; echo \."\n"; //查询数据库字段信息 $tab_name = $array[$i][Name]; $sql_tab=show full fields from ` . $array[$i][Name].`; $tab_result=mysql_query($sql_tab); $tab_array=array();while($r=mysql_fetch_assoc($tab_result)){$tab_array[]=$r; } //show keys $keys_result=mysql_query("show keys from `".$array[$i][Name].`,$conn); $arr_keys=mysql_fetch_array($keys_result);echo

."\n";echo \."\n";} echo \."\n"; echo \."\n";

斗地主源码百度云盘,Ubuntu.raid设置,查看tomcat端口信息,爬虫行业早报,php类库有哪些,seo排名顺时lzw

锦上源码,ubuntu安装分区图片,tomcat修改错误页面,爬虫自动填写,php中的伪协议,浦江seolzw

.code_report{float:right}.code_report div{ float: left; margin-left: 5px; background: url(“/img/ask-icon.jpg”) no-repeat; padding: 6px 0 6px 15px; padding-left: 15px; height: 16px;}.code_report a{ background: url(“/img/ask-icon.jpg”) 0 -160px no-repeat;padding-left: 20px; line-height: 15px;height: 16px; color: #333; text-decoration: none; display:inline-block; zoom:1; vertical-align: middle;}.code_report em{ height: 28px; line-height:28px; width: 14px; display: inline-block; float: left; background: url(“/img/ask-icon.jpg”) top right;}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。