- 1、本文档共4页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
怎样把数据库结构显示出来的源代码.doc
怎样把数据库结构显示出来的源代码教育资源库
通过以上的代码即可显示表的结构,字段类型,长度,自动编号,主健。如果你仔细研究后就可以发现如何远程改变数据库的结构了,祝你好运!
要查看此演示,需要你建立一个数据源,request(table)改为你的表的名字。
lt;htmlgt;
lt;headgt;
lt;titlegt;mainlt;/titlegt;
lt;meta http-equiv=Content-Type content=text/html; charset=gb2312gt;
lt;/headgt;
lt;body bgcolor=#CCCCCC text=#000000gt;
lt;h2 align=centergt;lt;font face=华文新魏gt;欢迎查看chenyangasp演示程序lt;/fontgt;lt;/h2gt;
lt;pgt;
lt;%
on error resume next
table=request(table)
//获得表名
if tablelt;gt; then
response.p;table
Set primary = con.OpenSchema(adSchemaPrimaryKeys, _
Array(empty, empty, table))
if primary(COLUMN_NAME)lt;gt; then
primarykey=primary(COLUMN_NAME)
end if
primary.close
set primary=nothing
%gt;
lt;/pgt;
lt;centergt;
lt;table [table]
set rs=con.execute(sql)
for i=0 to rs.fields.count-1
%gt;
lt;tr bgcolor=#CCCCCCgt;
lt;td class=sundog height=2 e%gt;lt;/divgt;
//字段名
lt;/tdgt;
lt;td class=sundog height=2 pty
typ = Empty
case adTinyInt
typ = TinyInt
case adSmallInt
typ = SmallInt
case adInteger
typ = Integer
case adBigInt
typ = BigInt
case adUnsigne
123下一页 这篇文章来自..,。dTinyInt
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 adIUnknoe
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 = Ch
您可能关注的文档
- 张燕生:应增加股权投资在对外金融资产中比重.doc
- 张维迎:经济转型靠甚么?.doc
- 张金清:四因素导致国内外银行安全水平差异.doc
- 张颐武:中国梦与创新文化.doc
- 弥月-满月典礼致辞.doc
- 强制性运动疗法对脑卒中偏瘫患者上肢运动功能的影响.doc
- 强制执行的方式及强制执行权的分配——行政强制法草案修改意见.doc
- 强力霉素对人肺癌细胞系增殖及侵袭行为的影响.doc
- 强力霉素对大鼠颈动脉粥样硬化形成的影响.doc
- 归元创疗汤剂对创伤大鼠血浆内毒素及二胺氧化酶的影响.doc
- TSTIC 120083-2023 电化学储能电站电池系统数字化运维服务要求.pdf
- 病虫害防治工作总结.pdf
- TSTIC 120085-2023 船舶拖带服务规范.pdf
- 健身安全课件图片最新完整版本.pptx
- (新统编版)语文二年级下册 第六单元 大单元教学计划.docx
- TSTIC 120081-2023 港口与航道工程施工总承包服务规范.pdf
- THEBQIA 304-2024 型钢智能检测设备设计规范.pdf
- 健身房消防培训课件最新完整版本.pptx
- 广东省深圳市红山中学2024-2025学年高二(下)第一次段考语文试卷(含答案).docx
- 广东省深圳市建文外国语学校两学部2025届高三下学期二模物理试题(含答案).docx
文档评论(0)