java,数据库问题。。急~~ 再加100分 能运行最好

[复制链接]
查看11 | 回复3 | 2011-6-8 14:07:25 | 显示全部楼层 |阅读模式
IP-123456
数据库名-win
数据库里有2个表,customer和order(用customerId做关联)
用Java编写包含combobox,datagird的
在combbox里能选择OrderId的话
datagird里显示customer信息(customerID,city,country)
比如
orderid
-》 customerid
city
country
电脑
-》 东芝
上海 中国
高手们帮忙
采纳后再加100

回复

使用道具 举报

千问 | 2011-6-8 14:07:25 | 显示全部楼层
select o.customerid o.OrderId c.city c.countryfrom customer corder o where o.OrderId ="your choice".前台显示用联动就可以。联动不会的话继续百度。...
回复

使用道具 举报

千问 | 2011-6-8 14:07:25 | 显示全部楼层
没太看懂你的意思 但就一个id连接的话可以select * from customer where customerID={select orderid from order where=...}...
回复

使用道具 举报

千问 | 2011-6-8 14:07:25 | 显示全部楼层
数据连接怎么做的?jdbc还是其他连接方式?看样子你这个是application...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行