List:General Discussion« Previous MessageNext Message »
From:Tim Johnson Date:May 15 2010 3:04pm
Subject:Re: C API Function for count(*)
View as plain text  
* Bob Cole <bobcole@stripped> [100515 06:58]:
> You might get closer to what you want if you put your command in a text file and run
> it from the command line.
> On a Mac OS X, I put a similar command:
>      select count(*) from testTable;
> into a small text file: 
>      testCount.txt
> and ran this command from the Terminal:
>      mysql -u username -ppassword < /Users/myname/Documents/testCount.txt
> The result was:
>      COUNT(*)
>      12
  Hi Bob:

  That's a good trick. It doesn't "fit" the API that I am trying to
  enhance, but it could be a good workaround by 'echo'ing to
  a tmpfile. 

 Thanks.
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
Thread
C API Function for count(*)Tim Johnson15 May
  • Re: C API Function for count(*)Dan Nelson15 May
    • Re: C API Function for count(*)Bob Cole15 May
      • Re: C API Function for count(*)Tim Johnson15 May
    • Re: C API Function for count(*)Tim Johnson15 May