问题描述
嗨
我是数据库编程的新手,我想知道如何以一对多的方式输入数据
iam new to database programing i want to know how to enter data in one to many senario suppose
我有主表项目
projecti,projectname
projecti,projectname
我还有一张桌子
ProjectAssignedstaff
ProjectAssignedstaff
ProjectID,staffid
ProjectID,staffid
我想知道如何创建数据输入界面,以便用户可以从主页插入项目和人员.
i want to know how to create dataentry interface so that user can insert project and staff from main page.
当前
我分两步执行此操作,首先添加新项目,然后在其他页面上添加具有ID的人员ID,并在查询字符串中传递
i am doing this in 2 steps first adding new project then on other page i am adding staff with project id passing in querystring.
请帮助我有什么办法可以在单页或指定人员上进行,然后单击提交以创建项目.
please help me is there any way to do it on single page or assigned staff first then click submit to create project.
projectid是自动增量主键.
projectid is auto incremental primarykey .
谢谢
推荐答案
http://msdn.microsoft.com/zh-CN/library/bb386876.aspx
http://msdn.microsoft.com/en-us/library/bb386876.aspx
这篇关于新手问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!