根据ID合并两行

编程入门 行业动态 更新时间:2024-10-25 19:34:17
本文介绍了根据ID合并两行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有带有选择,选择ID和问题ID之类的字段的表. 现在,我想将与一个问题相关的选择合并到一个语句中,然后插入第二个表中. 对于前 choiceId choiceName问题ID 1个1 2 b 2 questionId选择 1〜1〜2〜 我该怎么办?

I have table with fields like choices ,choice Id and question Id. Now i want to join this choices which are associated to a question into a single statement and insert into the second table. for ex choiceId choiceName questionId 1 a 1 2 b 2 questionId choices 1 ~1~2~ How can i do it ?

推荐答案

请通过此链接 sqlyoga/2009/02/sql-server-get- comma-separated-list.html Please go through this link sqlyoga/2009/02/sql-server-get-comma-separated-list.html

更多推荐

根据ID合并两行

本文发布于:2023-07-22 10:30:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1186711.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:两行   ID

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!