如何使用下拉列表将值添加到单个列中(注意:表已有数据) [英] How Do I Add Value Into A Single Column Using Dropdown (Note: Table Already Have Data)

查看:76
本文介绍了如何使用下拉列表将值添加到单个列中(注意:表已有数据)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望通过使用下拉列表将值添加到列中



考试我有一张桌子



slno姓名地址学校/学院

1 abc wer

2 bdc rew

3 der yrt





现在我将如何在所有行中添加学校名称./



dropbox将有两个选项学校或大学

例如:

大学所有行然后



slno姓名地址学校/学院

1 abc wer College

2 bdc rew College

3 der yrt College



i想从DropDown中选择一个数据,它将填充表中所有记录的每一行

任何人都可以帮助我

i want to added value into a column by using dropdown

for exam i have a table

slno name address school/College
1 abc wer
2 bdc rew
3 der yrt


now how will i add schoolname in all the rows./

dropbox will have two option school or college
for example:
college for all the rows then

slno name address school/College
1 abc wer College
2 bdc rew College
3 der yrt College

i want to select a data from DropDown which will fillto every rows in the table for all records
can anyone plzz help me

推荐答案

更新tablename set columnid =ur dropdo wnvalue



http: //www.java2s.com/Code/Oracle/Insert-Delete-Update/WheouttheWHEREclausethisUPDATEaffectsallrowsinthetable.htm [ ^ ]
update tablename set columnid="ur dropdownvalue"

http://www.java2s.com/Code/Oracle/Insert-Delete-Update/WithouttheWHEREclausethisUPDATEaffectsallrowsinthetable.htm[^]


这篇关于如何使用下拉列表将值添加到单个列中(注意:表已有数据)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆