Hi, I am using sqlalchemy core. I want to generate select query with table_name.* option in select part when I am performing join and it should be dialect specific. In below query I am using below line of code.
*select(["*"]).select_from(join_obj).* Mssql and Oracle dialect gives below query output *MSSQL :* *SELECT * FROM [Step1] AS [Step14] JOIN [ORDERS] AS [ORDERS6] ON [Step14].[CUST_ID1] = [ORDERS6].[CUSTOMER_ID]* *ORACLE QUERY:* *SELECT * FROM "Step1" "Step14" JOIN "ORDERS" "ORDERS6" ON "Step14"."CUST_ID1" = "ORDERS6"."CUSTOMER_ID"* above queries will return columns from both the tables. My requirement is query should be *MSSQL :* *SELECT [step14].* FROM [Step1] AS [Step14] JOIN [ORDERS] AS [ORDERS6] ON [Step14].[CUST_ID1] = [ORDERS6].[CUSTOMER_ID]* *ORACLE QUERY:* *SELECT "step14".* FROM "Step1" "Step14" JOIN "ORDERS" "ORDERS6" ON "Step14"."CUST_ID1" = "ORDERS6"."CUSTOMER_ID"* Note: Its not possible to me get all columns from table which I want to select. I will only get columns which used for join. So I cannot use column based select query. I have Littlebit tricky requirements in my project. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.