婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > 如何顯示數(shù)據(jù)庫的結構?

如何顯示數(shù)據(jù)庫的結構?

熱門標簽:語音電銷機器人視頻 武漢如何辦理400電話 400電話是怎么申請 重慶400電話哪里辦理 遼寧營銷智能外呼系統(tǒng)價格多少 推銷電話機器人怎么打電話的 教育機構地圖標注 常州智能外呼電銷機器人如何 自適應地圖標注

html>
head>
meta http-equiv="Content-Type" content="text/html; charset=gb2312">
/head>
body bgcolor="#CCCCCC" text="#000000">
h2 align="center">
星河影動之查看數(shù)據(jù)庫結構/h2>
p>
%
on error resume next
table=request("table")
 ' 獲得表名.


if table>"" then
response.write "
數(shù)據(jù)表:"table
Set primary = con.OpenSchema(adSchemaPrimaryKeys, _
Array(empty, empty, table))
if primary("COLUMN_NAME")>"" then
primarykey=primary("COLUMN_NAME")
end if
primary.close
set primary=nothing
%>
/p>
center>
table width="650" border="1" cellpadding="0" cellspacing="0">
tr bgcolor="#CCCCCC">
th class="sundog" width="61">
div align="center">
字段/div>
/th>
th class="sundog" width="131">
div align="center">
類型/div>
/th>
th class="sundog" width="105">
div align="center">
設定大小/div>
/th>
th class="sundog" width="69">
div align="center">
允許空值/div>
/th>
th class="sundog" width="69">
自動編號
/th>
th class="sundog" width="81">
主鍵/th>
/tr>
%sql="select * from ["table"] "
set rs=con.execute(sql)
for i=0 to rs.fields.count-1
%>
tr bgcolor="#CCCCCC">
td class="sundog" height="2" width="61">
div align="center">%=rs(i).name%>/div>


----------------------------------------------------------------------------------------------------------------

 ' 字段名.

/td>
td class="sundog" height="2" width="131">
div align="center">
%
field_type=rs(i).type
select case field_type
case adEmpty
typ = "Empty"
case adTinyInt
typ = "TinyInt"
case adSmallInt
typ = "SmallInt"
case adInteger
typ = "Integer"
case adBigInt
typ = "BigInt"
case adUnsignedTinyInt
typ = "UnsignedTinyInt"
case adUnsignedSmallInt
typ = "UnsignedSmallInt"
case adUnsignedInt
typ = "UnsignedInt"
case adUnsignedBigInt
typ = "UnsignedBigInt"
case adSingle
typ = "Single"
case adDouble
typ = "Double"
case adCurrency
typ = "Currency"
case adDecimal
typ = "Decimal"
case adNumeric
typ = "Numeric"
case adBoolean
typ = "Boolean"
case adError
typ = "Error"
case adUserDefined
typ = "UserDefined"
case adVariant
typ = "Variant"
case adIDispatch
typ = "IDispatch"
case adIUnknown
typ = "IUnknown"
case adGUID
typ = "GUID"
case adDATE
typ = "DATE"
case adDBDate
typ = "DBDate"
case adDBTime
typ = "DBTime"
case adDBTimeStamp
typ = "DBTimeStamp"
case adBStr
typ = "BStr"
case adChar
typ = "Char"
case adVarChar
typ = "VarChar"
case adLongVarChar
typ = "LongVarChar"
case adWChar
typ = "WChar"
case adVarWChar
typ = "VarWChar"
case adLongVarWChar
typ = "LongVarWChar"
case adBinary
typ = "Binary"
case adVarBinary
typ = "VarBinary"
case adLongVarBinary
typ = "LongVarBinary"
case adChapter
typ = "Chapter"
case adPropVariant
typ = "PropVariant"
case else
typ = "Unknown"
----------------------------------------------------------------------------------------------------------------

 

end select
response.write typ%>
 ' 字段類型.
/div>
/td>
td class="sundog" height="2" width="105">
div align="center">%=rs(i).definedsize%>/div>
/td>
 ' 字段長度.

td class="sundog" height="2" width="69">
div align="center">
%
attrib=rs(i).attributes
if (attrib and adFldIsNullable)=0 then
response.write "No"
else
response.write "Yes"
end if
%>
/div>
/td>

----------------------------------------------------------------------------------------------------------------

 ' 是否允許空值.
td class="sundog" height="2" width="69">
div align="center">
%if rs(i).Properties("ISAUTOINCREMENT") = True then%>
input type="checkbox" name="autoincrement" value="checkbox" checked>
%else%>
input type="checkbox" name="autoincrement" value="checkbox">
%end if%>
/div>
/td>
----------------------------------------------------------------------------------------------------------------

 ' 是否為自動編號.
td class="sundog" height="2" width="81">
div align="center">
%if rs(i).name=primarykey then%>
input type="checkbox" name="primarykey" value="checkbox" checked>
%else%>
input type="checkbox" name="primarykey" value="checkbox">
%end if%>
/div>
/td>
----------------------------------------------------------------------------------------------------------------

 ' 主健.
/tr>
%next %>
/table>
/center>

[1]

標簽:朔州 中山 柳州 雞西 邯鄲 襄陽 威海 遵義

巨人網(wǎng)絡通訊聲明:本文標題《如何顯示數(shù)據(jù)庫的結構?》,本文關鍵詞  如何,顯示,數(shù)據(jù)庫,的,結構,;如發(fā)現(xiàn)本文內(nèi)容存在版權問題,煩請?zhí)峁┫嚓P信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《如何顯示數(shù)據(jù)庫的結構?》相關的同類信息!
  • 本頁收集關于如何顯示數(shù)據(jù)庫的結構?的相關信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 涿州市| 启东市| 台前县| 沂源县| 运城市| 海林市| 怀安县| 高邮市| 沙湾县| 垫江县| 郁南县| 天长市| 阳江市| 余姚市| 娄底市| 黄浦区| 健康| 周口市| 行唐县| 嘉禾县| 阳朔县| 剑河县| 漳州市| 云浮市| 太湖县| 秀山| 监利县| 庆云县| 中江县| 宜宾市| 会泽县| 安宁市| 孝义市| 板桥市| 阳高县| 恩施市| 从化市| 西吉县| 保定市| 彩票| 额济纳旗|