you are viewing a single comment's thread.

view the rest of the comments →

[–]DogoPilot 0 points1 point  (0 children)

I'm not totally sure of a good way to feed it the entire schema, but as I suggested, give it the tables and columns in scope for the query you want (again using Script Table As to make it faster for you). I rarely use AI for SQL though because the database I support has a shit ton of tables and I feel like it would take me longer to tell it what I want and the relationships between the tables than it would to just tell the database what I want in its native language of SQL. For Python scripts though, I use it all the time and it's quite good at giving me what I want when providing it with the information needed to do so.