如果是建立联系 2楼的SQL语句确实是不错的但是,使用视图应该可以解决你的编辑修改删除问题 create view as select worker.ID,worker.NAME,worker.SEX, worker.DEPARTMENT,worker.SKILLCODE,tel.ID,tel.TEL,tel.Mobile, 技能表.SKILLCODE,技能表.SKILL from worker,tel,技能表 where worker.id = tel.id and worker.skillcode = 技能表.skillcoke
Query.text := 'select worker.ID,worker.NAME,worker.SEX,
worker.DEPARTMENT,worker.SKILLCODE,tel.ID,tel.TEL,tel.Mobile,
技能表.SKILLCODE,技能表.SKILL from worker,tel,技能表 where
worker.id = tel.id and worker.skillcode = 技能表.skillcoke'
好象是这样的 可以看一下SQL2000的帮助
其他的东东还是要自己来做的
当然可以去找找相应的数据库控件的
2楼的SQL语句确实是不错的但是,使用视图应该可以解决你的编辑修改删除问题
create view as select worker.ID,worker.NAME,worker.SEX,
worker.DEPARTMENT,worker.SKILLCODE,tel.ID,tel.TEL,tel.Mobile,
技能表.SKILLCODE,技能表.SKILL from worker,tel,技能表 where
worker.id = tel.id and worker.skillcode = 技能表.skillcoke