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!!
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!!