六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網(wǎng)中心:是一個(gè)免費(fèi)提供流行視頻軟件教程、在線學(xué)習(xí)分享的學(xué)習(xí)平臺(tái)!

怎么把數(shù)據(jù)庫結(jié)構(gòu)顯示出來的源代碼

[摘要]通過以上的代碼即可顯示表的結(jié)構(gòu),字段類型,長(zhǎng)度,自動(dòng)編號(hào),主健。如果你仔細(xì)研究后就可以發(fā)現(xiàn)如何遠(yuǎn)程改變數(shù)據(jù)庫的結(jié)構(gòu)了,祝你好運(yùn)!要查看此演示,需要你建立一個(gè)數(shù)據(jù)源,request("table")改為你的表的名字。<html><head><titl...
通過以上的代碼即可顯示表的結(jié)構(gòu),字段類型,長(zhǎng)度,自動(dòng)編號(hào),主健。如果你仔細(xì)研究后就可以發(fā)現(xiàn)如何遠(yuǎn)程改變數(shù)據(jù)庫的結(jié)構(gòu)了,祝你好運(yùn)!

要查看此演示,需要你建立一個(gè)數(shù)據(jù)源,request("table")改為你的表的名字。
<html>
<head>
<title>main</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#CCCCCC" text="#000000">
<h2 align="center"><font face="華文新魏">歡迎查看chenyangasp演示程序</font></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">設(shè)定大小</div>
</th>
<th class="sundog" width="69">
<div align="center">允許空值</div>
</th>
<th class="sundog" width="69">
自動(dòng)編號(hào)
</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>
//字段長(zhǎng)度

<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>

//是否為自動(dòng)編號(hào)

<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>





主站蜘蛛池模板: 伊人网在线免费视频 | 午夜视频在线观看视频 | 色黄网站成年女人色毛片 | 四虎影永久在线观看网址 | 日韩三级毛片 | 欧美亚洲一区二区三区在线 | 午夜视频在线观看完整版 | 天天伊人网 | 无颜之月第05集免费观看 - 83屋 | 伊人精品久久久大香线蕉99 | 欧美性猛交xxxx乱大交中文 | 四虎影院视频在线观看 | 最近韩国高清免费 hd | 日产精品卡二卡三卡四卡乱码视频 | 色噜噜狠狠在爱丁香 | 天天干视频网站 | 亚洲综合导航 | 色综合久久综合网欧美综合网 | 日韩av东京社区男人的天堂 | 四虎4hu永久免费国产精品 | 婷婷伊人久久 | 小草社区在线观看播放 | 日本免费一区二区三区a区 日本免费一二三区 | 羞羞一区二区三区四区片 | 在线观看国产一区二三区 | 亚洲天堂伊人 | 亚洲春黄在线观看 | 综合久久网 | 天天狠天天透天天伊人 | 呦呦国产 | 亚洲白嫩在线观看 | 色小妹综合 | 亚洲福利视频网站 | 日韩欧美一区二区在线观看 | 日韩城人网 | 天天摸天天澡天天碰天天弄 | 西西gogo午夜高清大胆 | 香港三级理论在线观看网站 | 欧美无人区码卡二三卡四卡 | 青春草在线观看播放免费视频 | 五月婷婷社区 |