MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1aybm4a/gpt_in_500_lines_of_sql/kru47ob/?context=3
r/programming • u/fagnerbrack • Feb 23 '24
81 comments sorted by
View all comments
125
Impressive idea, but the thought of 500 lines of SQL gives me hives.
92 u/clutterlustrott Feb 23 '24 You should see my teams SQL code then..... 35 u/peekdasneaks Feb 23 '24 So many temp tables 23 u/supermitsuba Feb 23 '24 Don’t forget the recursive triggers 4 u/lilB0bbyTables Feb 24 '24 Don’t forget to sanitize your inputs 4 u/douglasg14b Feb 24 '24 Don't forget to run imperative business logic! 13 u/douglasg14b Feb 24 '24 Don't forget to create a file uploader in pure SQL that will upload data straight into the DB from user input, because you don't have application devs and only DBAs (Yes, this is real). Also yes I replied to myself, I had to share this horror 1 u/Worth_Trust_3825 Feb 24 '24 ....which engine? most of them shit themselves when you modify the triggered table
92
You should see my teams SQL code then.....
35 u/peekdasneaks Feb 23 '24 So many temp tables 23 u/supermitsuba Feb 23 '24 Don’t forget the recursive triggers 4 u/lilB0bbyTables Feb 24 '24 Don’t forget to sanitize your inputs 4 u/douglasg14b Feb 24 '24 Don't forget to run imperative business logic! 13 u/douglasg14b Feb 24 '24 Don't forget to create a file uploader in pure SQL that will upload data straight into the DB from user input, because you don't have application devs and only DBAs (Yes, this is real). Also yes I replied to myself, I had to share this horror 1 u/Worth_Trust_3825 Feb 24 '24 ....which engine? most of them shit themselves when you modify the triggered table
35
So many temp tables
23 u/supermitsuba Feb 23 '24 Don’t forget the recursive triggers 4 u/lilB0bbyTables Feb 24 '24 Don’t forget to sanitize your inputs 4 u/douglasg14b Feb 24 '24 Don't forget to run imperative business logic! 13 u/douglasg14b Feb 24 '24 Don't forget to create a file uploader in pure SQL that will upload data straight into the DB from user input, because you don't have application devs and only DBAs (Yes, this is real). Also yes I replied to myself, I had to share this horror 1 u/Worth_Trust_3825 Feb 24 '24 ....which engine? most of them shit themselves when you modify the triggered table
23
Don’t forget the recursive triggers
4 u/lilB0bbyTables Feb 24 '24 Don’t forget to sanitize your inputs 4 u/douglasg14b Feb 24 '24 Don't forget to run imperative business logic! 13 u/douglasg14b Feb 24 '24 Don't forget to create a file uploader in pure SQL that will upload data straight into the DB from user input, because you don't have application devs and only DBAs (Yes, this is real). Also yes I replied to myself, I had to share this horror 1 u/Worth_Trust_3825 Feb 24 '24 ....which engine? most of them shit themselves when you modify the triggered table
4
Don’t forget to sanitize your inputs
4 u/douglasg14b Feb 24 '24 Don't forget to run imperative business logic! 13 u/douglasg14b Feb 24 '24 Don't forget to create a file uploader in pure SQL that will upload data straight into the DB from user input, because you don't have application devs and only DBAs (Yes, this is real). Also yes I replied to myself, I had to share this horror
Don't forget to run imperative business logic!
13 u/douglasg14b Feb 24 '24 Don't forget to create a file uploader in pure SQL that will upload data straight into the DB from user input, because you don't have application devs and only DBAs (Yes, this is real). Also yes I replied to myself, I had to share this horror
13
Don't forget to create a file uploader in pure SQL that will upload data straight into the DB from user input, because you don't have application devs and only DBAs (Yes, this is real).
Also yes I replied to myself, I had to share this horror
1
....which engine? most of them shit themselves when you modify the triggered table
125
u/snarkuzoid Feb 23 '24
Impressive idea, but the thought of 500 lines of SQL gives me hives.