Click here to Skip to main content
13,357,973 members (55,629 online)
Rate this:
Please Sign up or sign in to vote.
See more:
how to save data from two table to two table
Posted 7-Oct-12 2:14am
Sandip.Nascar 7-Oct-12 7:37am
It's not too clear, what you want to do? Please be more specific of your problem.
Zoltán Zörgő 7-Oct-12 8:04am
Just like that.
What database engine? On database side, or via a client? One-to-one or some transformation is needed? Or it is a web related question, and you are dealing with some html tables? Or you want to copy Excel or Word tables...? Did you really thought, that somebody could understand those few words, that are not even a sentence?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

if You mean Table such as two Dimensional Array in C# so one of ways :

// Table num1
          int[,] num1 = {
          // Table num2
          int[,] num2 = {
          // Table num3, num4
          int[,] num3 = new int[4, 2];
          int[,] num4 = new int[4, 2];

          // Save to Table num3
          for (int i = 0; i < 4; i++)
              for (int j = 0; j < 2; j++)

                  num3[i, j] = num1[i, j];

          // Save to Table num4
          for (int i = 0; i < 4; i++)
              for (int j = 0; j < 2; j++)
                  num4[i, j] = num2[i, j];

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180111.1 | Last Updated 7 Oct 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100