Split a column in sqlite3 with delimiter and add more rows
up vote
-1
down vote
favorite
Table schema
CREATE MYTABLE (ROWID PRIMARY KEY, FILENAME TEXT, HOUR INT);
Example:
My input table looks like below:
Input
1 /tmp/hello1.c!@#/tmp/hello2.c 12
2 /tmp/my1.c!@#/tmp/my2.c 13
I want to create the output as below: splitting filename with demlimiter '!@#'
1 /tmp/hello1.c 12
2 /tmp/my1.c 13
3 /tmp/hello2.c 12
4 /tmp/my2.c 13
c++ sqlite3
add a comment |
up vote
-1
down vote
favorite
Table schema
CREATE MYTABLE (ROWID PRIMARY KEY, FILENAME TEXT, HOUR INT);
Example:
My input table looks like below:
Input
1 /tmp/hello1.c!@#/tmp/hello2.c 12
2 /tmp/my1.c!@#/tmp/my2.c 13
I want to create the output as below: splitting filename with demlimiter '!@#'
1 /tmp/hello1.c 12
2 /tmp/my1.c 13
3 /tmp/hello2.c 12
4 /tmp/my2.c 13
c++ sqlite3
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
Table schema
CREATE MYTABLE (ROWID PRIMARY KEY, FILENAME TEXT, HOUR INT);
Example:
My input table looks like below:
Input
1 /tmp/hello1.c!@#/tmp/hello2.c 12
2 /tmp/my1.c!@#/tmp/my2.c 13
I want to create the output as below: splitting filename with demlimiter '!@#'
1 /tmp/hello1.c 12
2 /tmp/my1.c 13
3 /tmp/hello2.c 12
4 /tmp/my2.c 13
c++ sqlite3
Table schema
CREATE MYTABLE (ROWID PRIMARY KEY, FILENAME TEXT, HOUR INT);
Example:
My input table looks like below:
Input
1 /tmp/hello1.c!@#/tmp/hello2.c 12
2 /tmp/my1.c!@#/tmp/my2.c 13
I want to create the output as below: splitting filename with demlimiter '!@#'
1 /tmp/hello1.c 12
2 /tmp/my1.c 13
3 /tmp/hello2.c 12
4 /tmp/my2.c 13
c++ sqlite3
c++ sqlite3
edited Nov 21 at 8:41
asked Nov 21 at 7:19
goku
253
253
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53407032%2fsplit-a-column-in-sqlite3-with-delimiter-and-add-more-rows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown