Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char id[256];
- char nome[256];
- char username[256];
- int main()
- {
- while(scanf("%[^,],", id)!=EOF)
- {
- if(scanf("\"%[^\"]\",", nome) == 0)
- scanf("%[^,],", nome);
- if(scanf("\"%[^\"]\"\n", username) == 0)
- scanf("%[^,\n]\n", username);
- printf("insert into test_users (id, nome, username) values ('%s', '%s', '%s');\n", id, nome, username);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement