Click here to Skip to main content
15,887,135 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Wicked code! Pin
jmaida16-Sep-23 15:12
jmaida16-Sep-23 15:12 
GeneralRe: Wicked code! Pin
0x01AA16-Sep-23 4:37
mve0x01AA16-Sep-23 4:37 
GeneralRe: Wicked code! Pin
honey the codewitch16-Sep-23 5:01
mvahoney the codewitch16-Sep-23 5:01 
GeneralRe: Wicked code! Pin
honey the codewitch16-Sep-23 5:01
mvahoney the codewitch16-Sep-23 5:01 
GeneralRe: Wicked code! Pin
Nelek16-Sep-23 5:45
protectorNelek16-Sep-23 5:45 
GeneralRe: Wicked code! Pin
Richard Andrew x6416-Sep-23 6:16
professionalRichard Andrew x6416-Sep-23 6:16 
GeneralRe: Wicked code! Pin
Nelek16-Sep-23 11:45
protectorNelek16-Sep-23 11:45 
Generalneed to write a small SQL parser Pin
Southmountain15-Sep-23 18:14
Southmountain15-Sep-23 18:14 
I have a need to write a small SQL parser and try to look for an example.
my SQL parser is very minimal: just need to extract all field names and tables that are used this SQL statements.

any good example to recommend?

my business need is to extract all field names and database names associated with these fields:
select a.var1,
       a.var2,
       b.var3,
       b.var4
from db1 a left join db2 b
on a.var5=b.var5
;

my need is to put these vars into this form in Excel workbook:
db1 var1
db1 var2
db2 var3
db2 var4


thanks a million!
diligent hands rule....


modified 16-Sep-23 15:04pm.

GeneralRe: need to write a small SQL parser Pin
honey the codewitch15-Sep-23 18:53
mvahoney the codewitch15-Sep-23 18:53 
GeneralRe: need to write a small SQL parser Pin
Southmountain16-Sep-23 8:50
Southmountain16-Sep-23 8:50 
GeneralRe: need to write a small SQL parser Pin
PIEBALDconsult16-Sep-23 3:34
mvePIEBALDconsult16-Sep-23 3:34 
GeneralRe: need to write a small SQL parser Pin
Southmountain16-Sep-23 8:49
Southmountain16-Sep-23 8:49 
GeneralRe: need to write a small SQL parser Pin
PIEBALDconsult16-Sep-23 19:25
mvePIEBALDconsult16-Sep-23 19:25 
GeneralRe: need to write a small SQL parser Pin
jschell18-Sep-23 5:59
jschell18-Sep-23 5:59 
GeneralRe: need to write a small SQL parser Pin
RickZeeland16-Sep-23 3:41
mveRickZeeland16-Sep-23 3:41 
GeneralRe: need to write a small SQL parser Pin
Southmountain16-Sep-23 8:51
Southmountain16-Sep-23 8:51 
GeneralRe: need to write a small SQL parser Pin
Nelek16-Sep-23 3:55
protectorNelek16-Sep-23 3:55 
GeneralRe: need to write a small SQL parser Pin
Southmountain16-Sep-23 14:11
Southmountain16-Sep-23 14:11 
GeneralRe: need to write a small SQL parser Pin
Nelek17-Sep-23 3:38
protectorNelek17-Sep-23 3:38 
GeneralRe: need to write a small SQL parser Pin
jschell18-Sep-23 6:19
jschell18-Sep-23 6:19 
GeneralRe: need to write a small SQL parser Pin
Southmountain18-Sep-23 20:13
Southmountain18-Sep-23 20:13 
GeneralRe: need to write a small SQL parser Pin
jschell19-Sep-23 5:10
jschell19-Sep-23 5:10 
GeneralRe: need to write a small SQL parser Pin
Southmountain19-Sep-23 19:42
Southmountain19-Sep-23 19:42 
GeneralRe: need to write a small SQL parser Pin
jschell20-Sep-23 13:08
jschell20-Sep-23 13:08 
GeneralRe: need to write a small SQL parser Pin
Southmountain20-Sep-23 20:02
Southmountain20-Sep-23 20:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.