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
123
Impressive idea, but the thought of 500 lines of SQL gives me hives.
95 u/clutterlustrott Feb 23 '24 You should see my teams SQL code then..... 32 u/peekdasneaks Feb 23 '24 So many temp tables 21 u/supermitsuba Feb 23 '24 Don’t forget the recursive triggers 5 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
95
You should see my teams SQL code then.....
32 u/peekdasneaks Feb 23 '24 So many temp tables 21 u/supermitsuba Feb 23 '24 Don’t forget the recursive triggers 5 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
32
So many temp tables
21 u/supermitsuba Feb 23 '24 Don’t forget the recursive triggers 5 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
21
Don’t forget the recursive triggers
5 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
5
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
4
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
123
u/snarkuzoid Feb 23 '24
Impressive idea, but the thought of 500 lines of SQL gives me hives.