How to do it?

P

prior_121

There's a string, such as '0010110'
And there's a table called temp_db
+-----+-----+
|index|state|
+-----+-----+
What I want to do is to put the string into the table, and
the result should be like this.
+-----+-----+
|index|state|
+-----+-----+
| 1 | 0 |
+-----+-----+
| 2 | 0 |
+-----+-----+
| 3 | 1 |
+-----+-----+
| 4 | 0 |
+-----+-----+
| 5 | 1 |
+-----+-----+
| 6 | 1 |
+-----+-----+
| 7 | 0 |
+-----+-----+
How to do it by using SQL? Great thankful!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top