复制行 [英] copy rows

查看:65
本文介绍了复制行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i希望在表格中复制行。


i得到了这个例子:

Hi,

i want to duplicate rows in a table.

i got this for example:

展开 | 选择 | Wrap | 行号

推荐答案

我会再次询问,但不同以便更容易理解我需要的东西。 />

i得到了现在是行


id ----------位置------------- A_Q_ID

1 --------------- 1 -------------------- 5 -----

2 --------------- 2 -------------------- 5 -----

3 --------------- 3 -------------------- 5 -----

4 --------------- 1 -------------------- 6 -----

5 --------------- 2 -------------------- 6 -----

6 --------------- 3 -------------------- 6 -----


我需要的是复制所有的行并将它们插入我已经拥有的那些行之后:


id ----- -------位置------------- A_Q_ID

7 ----------------- 1- ------------------- 7 -----

8 ---------------- -2 -------------------- 7 -----

9 ------------- ---- 3 -------------------- 7 -----

10 ---------- ----- 1 -------------------- 8 -----

11 --------- ------ 2 -------------------- 8 -----

12 -------- ------- 3 -------------------- 8 -----


i没有尝试过几种方法成功。

任何想法请问怎么做?我无法理解这样做:(


谢谢
i will ask again but differently so it will be easier for understanding what i need.

i got this rows right now

id----------position-------------A_Q_ID
1---------------1--------------------5-----
2---------------2--------------------5-----
3---------------3--------------------5-----
4---------------1--------------------6-----
5---------------2--------------------6-----
6---------------3--------------------6-----

what i need is to duplicat all the rows and have them inserted after the rows i allready have like that:

id------------position-------------A_Q_ID
7-----------------1--------------------7-----
8-----------------2--------------------7-----
9-----------------3--------------------7-----
10---------------1--------------------8-----
11---------------2--------------------8-----
12---------------3--------------------8-----

i tryed few ways without success .
any idea how to do that please? i cannot get the logic on doing it :(

thanks


展开 | 选择 | 换行 | 行号


谢谢,我已经完成了。


问题是A_Q_ID不是自动增量。


如果你看看它得到的位置1,2,3这是3个选项,而A_Q_ID是相同的。


我想要完成的是重复3个选项但是让它们与不同的A_Q_ID。


所以,如果我得到它:


pos ----- A_Q_ID

1 -------- 3 ----

2 -------- 3 ----

3 ----- --- 3 ----

1 -------- 4 ----

2 -------- 4-- -

3 -------- 4 ----

复制后我需要的是:


pos ----- A_Q_ID

1 -------- 3 ----

2 ------ - 3 ----

3 -------- 3 ----

1 -------- 4 --- -

2 -------- 4 ----

3 -------- 4 ----
< br $> b $ b 1 -------- 5 ----

2 -------- 5 ----

3 -------- 5 ----

1 -------- 6 ----

2 ---- ---- 6 ----

3 -------- 6 ----


谢谢
thanks, this i allready done.

the problem is that A_Q_ID is not auto increment.

if you look at the position it got 1,2,3 this is 3 options ,and the A_Q_ID is the same.

what im trying to accomplish is to duplcate the 3 options but have them with different A_Q_ID.

so if i got it like that:

pos-----A_Q_ID
1--------3----
2--------3----
3--------3----
1--------4----
2--------4----
3--------4----

and what i need after duplicating is:

pos-----A_Q_ID
1--------3----
2--------3----
3--------3----
1--------4----
2--------4----
3--------4----

1--------5----
2--------5----
3--------5----
1--------6----
2--------6----
3--------6----

thanks


这篇关于复制行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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