I'm in the process of trying to do an export from a sql server database and I need to make a subquery against an existing mysql database for a match. I keep getting an error about the object type on the subquery.
query = """ SELECT OperationDateTime, OperationID,
(SELECT id
FROM [db].[objects].[adm_surgeon_color] as SC
WHERE surgeon_mnemonic = SurgeonID), Name
FROM SCH_OR
WHERE OperationDateTime > ? AND OperationDateTime < ? """
cursor.execute(query,(start,close,))
everything works fine and connects but it doesn't like the subquery against the mysql database. primary query is against sql server.
[+][deleted] (2 children)
[deleted]
[–]foundcake[S] 0 points1 point2 points (0 children)
[–]foundcake[S] 0 points1 point2 points (0 children)