for c-tokens from left to right between "values" and ";":
if token == "(":
start it all or start a row
if token == ")":
end row or end it all
if token == ",":
do nothing
if token is quoted:
save unquote(token)
if token is number:
save tostring(number)
if token == "null":
save null
otherwise:
scream helpTravelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1000654 |
| Snippet name: | Runnable pseudo-code for parsing MySQL values |
| Eternal ID of this version: | #1000654/1 |
| Text MD5: | 37f5cc03b30baaba20e3acc673bca632 |
| Author: | stefan |
| Category: | |
| Type: | Document |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-08-21 16:21:28 |
| Source code size: | 360 bytes / 15 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 932 / 233 |
| Referenced in: | #1000656 - Parse MySQL values (part of insert statement) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000384 - Answer for 6uru0fsh1va (>> t-sql?) |