0

I'm using SQL Server Compact Edition 4 and I have this set of tables and columns in my db:

  • javascript_db.sdf (name of my database)
  • Variables (name of my table inside javascript_db.sdf)
  • ID, Name (columns in Variables table)

and I want to add all my strings in my MainForm to the Name column, filling ID column also counting all Name.

Sample:

String js[] = { "true", "false", "function", "for" };

and output must be (on table Variables):

ID------Name
1      true
2      false
3      function
4      for

How can I do that? Thanks in advance!

Also how can I do that in 2set of different strings?

Sample:

String js[] = { "true", "false", "function", "for" };
String aa = { "11", "22", "33", "44", "55" };

Output:

ID------Name------SampleColumn
    1      true        11
    2      false       22
    3      function    33
    4      for         44
4

0 回答 0