So I have a SQL query with has the following structure:
CREATE TEMPORARY TABLE a
Select id, time
from t1 ;
CREATE TEMPORARY TABLE b
Select id, views
from t2 ;
Select a.id, a.time, b.views from a join b on a.id=b.id;
Which is saved in a .sql file that I want to read in pd.read_sql()
However, since there are multiple SQL statements it does not seem to work.
Any clues on where to look at?
Thanks
You need a "SET NOCOUNT ON" at the top of your script. This will avoid returning the empty result set for number of rows inserted by first 2 inserts.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.