r/SQL • u/ichefcast • May 16 '26
Oracle Claude and SQL queries
How can I optimize my use of Claude for developing SQL queries in Oracle? I have been considering exploring Code or Cowork to build something that could improve my workflow, but I am not sure what would be the most useful to create.
0
Upvotes
35
u/BplusHuman May 16 '26
Probably start by getting to know your data architecture instead of crowd sourcing strangers on your own work.
3
u/Thick_Journalist7232 May 16 '26
There are plenty of oracle examples out there. They just don’t always say “oracle” search for pl/sql instead.
3
u/trollied May 16 '26
The answer to your question is largely dependent on your current SQL/Oracle knowledge.
2
u/sn0wdizzle May 16 '26
I made a data catalog like mcp where I can ask questions of the meta data to speep up discovery and identify the correct joins. This has radically sped up my work and helped me learn various tables much faster. We don’t have good data on what actually lives in fields though so it isn’t as helpful with where clauses.
1
u/bitterjack May 16 '26
If you can give it a structure map with sizes and foreign and primary keys as well as basic infrastucture relational knowledge, I think it can write queries pretty easily. But that's a good bit of knowledge to digest, and you have to be able to check it's understanding as well.
Otherwise you can just do like syntax help and you can replace tables as necessary.
1
u/No_Resolution_9252 May 16 '26
Commenting because I am curious to know.
I'd really like to get into oracle, but the question of "where do oracle DBAs come from?" to me seems more mysterious than the question of "where do babies come from?" and I see almost no oracle code online ever so not sure how LLMs could be trained on it
0
u/marmotta1955 May 16 '26
I find particularly perplexing - if not scary - the idea of relying on some sort of LLM or Artificial Intelligence to ... optimize SQL queries. I am not even attempting to discuss why, it should be self evident.
All this talk about Artificial Intelligence and yet my C# compiler still throws a fit for one single missing brace ...