PC6下载站

分类分类

下拉框连动的小例子(数据库版)

关注+2004-11-07作者:蓝点

asp文件

<%@ Language=VBScript %>

<%Option Explicit%>





List



<%

dim conn

dim rs

dim sql

dim count

dim rs1

dim sql1





set conn = server.CreateObject ("adodb.connection")

conn.Open "test","sa",""





sql = "select * from district order by locationid asc"

set rs = conn.execute(sql)

%>









    

    













数据库

create table location

(



locationid char(2) not null primary key,

locationname char(50) not null



)





create table district

(



districtid char(3) not null primary key,

districtname char(50) not null,

locationid char(2) not null

)




展开全部

相关文章

更多+相同厂商

热门推荐

  • 最新排行
  • 最热排行
  • 评分最高
排行榜

    点击查看更多

      点击查看更多

        点击查看更多

        说两句网友评论

          我要评论...
          取消