[Qt-interest] database exec sql

Nikolay Moskvichev nikolay.moskvichev at gmail.com
Tue Aug 31 09:59:25 CEST 2010


Hello, pengliang(彭亮)
31.08.2010 8:02 you wrote:
> Hi All:
> 
>      Please see the below picture, I don’t know why can not execute sql
> but open is true?
> 
> And I execute sql in terminal, all are ok.
> 
> Thanks
> 

In your terminal it looks like you use mysql, but in your code you use
SQLITE. Are you shure that SQLITE supports "show databases"?
Looks like not:

SQLite version 3.2.8
Enter ".help" for instructions
sqlite> show databases;
SQL error: near "show": syntax error
sqlite>


> Ken
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 




More information about the Qt-interest-old mailing list