新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 本版讨论.NET,C#,ASP,VB技术
    [返回] 中文XML论坛 - 专业的XML技术讨论区计算机技术与应用『 Dot NET,C#,ASP,VB 』 → 从SQLSERVER2000中导出数据到XML文档中出现这样一个问题:一个主表,两个从表 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 3945 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 从SQLSERVER2000中导出数据到XML文档中出现这样一个问题:一个主表,两个从表 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     snowmanbaby 美女呀,离线,快来找我吧!
      
      
      等级:大一新生
      文章:0
      积分:52
      门派:XML.ORG.CN
      注册:2004/7/5

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给snowmanbaby发送一个短消息 把snowmanbaby加入好友 查看snowmanbaby的个人资料 搜索snowmanbaby在『 Dot NET,C#,ASP,VB 』的所有贴子 引用回复这个贴子 回复这个贴子 查看snowmanbaby的博客楼主
    发贴心情 从SQLSERVER2000中导出数据到XML文档中出现这样一个问题:一个主表,两个从表

    报错为XML tag ID 2 that was originally declared as 'drug_item' is being redeclared as 'drug_rate'.

    sql语句为:
    sql = "select 1 as tag,null as parent, drug.id as [drug!1!id],drug.patient_case_id as [drug!1!patient_case_id]," _
                        & "drug.begin_time as [drug!1!begin_time],drug.end_time as [drug!1!end_time]," _
                        & "drug.description as [drug!1!description],drug.volumn_used as [drug!1!volumn_used], " _
                        & "drug.routine_id as [drug!1!routine_id],drug.doctor_id as [drug!1!doctor_id], " _
                        & "drug.is_blood as [drug!1!is_brood],drug.is_continuum as [drug!1!continum], " _
                        & "drug_item.drug_id as [drug_item!2!drug_id],drug_item.medicine_id as [drug_item!2!medicine_id], " _
                        & "drug_item.dosage as [drug_item!2!dosage],drug_item.volumn as [drug_item!2!volumn]," _
                        & "drug_item.concentration as [drug_item!2!concentration],drug_item.unit_id as [drug_item!2!unit_id]," _
                        & "drug_item.is_liquid as [drug_item!2!is_liquid], " _
                        & "drug_rate.drug_id as [drug_rate!2!drug_id],drug_rate.begin_time as [drug_rate!2!begin_time], " _
                        & "drug_rate.end_time [drug_rate!2!end_time],drug_rate.rate as [drug_rate!2!rate] " _
                        & "from drug,drug_item,drug_rate " _
                        & "where drug_item.drug_id in (select id from drug where patient_case_id=" & CaseIDs(i) & ") and drug_rate.drug_id in (select id from drug where patient_case_id=" & CaseIDs(i) & ")" _
                        & "for xml explicit"

    强调两个子表应该是在同一层次上的。


       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/3 14:59:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 Dot NET,C#,ASP,VB 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/12/27 18:47:04

    本主题贴数1,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    62.500ms