Re: Memory Problem with 1 DB. Other DB ok
Posted by:
Rick James
Date: January 26, 2015 12:14PM
This is probably getting into the implementation of ODBC, about which I know nothing.
> select top 1 ID from MYSQL_WEB_PROD...wp_users order by id desc
That sound like MySQL's
SELECT ID FROM wp_users ORDER BY id DESC LIMIT 1;
If ODBC were smart enough to do the translation, then there should be no problem. Instead, I suspect they are doing the "top 1" in ODBC after fetching
SELECT ID FROM wp_users ORDER BY id DESC
That is, I suspect they are fetching the entire column, then doing "top 1".
This suspect this would get the same answer:
select max(ID) from MYSQL_WEB_PROD...wp_users
But that may not be your ultimate goal. If you want the row that that represents, then try
select * from MYSQL_WEB_PROD...wp_users where ID = ( select max(ID) from MYSQL_WEB_PROD...wp_users )
Beyond that, I can't think of any workarounds.
Suggest you look for an ODBC forum and present my hypothesis to them.
Subject
Views
Written By
Posted
3555
January 22, 2015 11:15PM
1930
January 24, 2015 11:25AM
1967
January 25, 2015 11:26AM
2146
January 25, 2015 12:06PM
1859
January 25, 2015 12:09PM
Re: Memory Problem with 1 DB. Other DB ok
1874
January 26, 2015 12:14PM
1904
January 26, 2015 12:25PM
1918
January 27, 2015 09:45PM
1976
January 28, 2015 12:46AM
1829
January 28, 2015 07:48AM
1946
January 28, 2015 10:39AM
2207
January 28, 2015 02:27PM
1829
January 28, 2015 02:39PM
2006
January 28, 2015 03:00PM
1898
January 29, 2015 06:08PM
1884
January 29, 2015 06:10PM
1966
January 29, 2015 08:49PM
1924
January 29, 2015 10:32PM
1892
January 29, 2015 10:33PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.