I can run the select statement and get result in sqlite-manager (firefox plugin).
Here is the sqlite db file,Cinfo is db name ,ipo is a table in it.
http://pan.baidu.com/s/1hqJuNa8
select 代码,上市日期, (julianday(date())-julianday(上市日期))/365 as years from ipo;
why i can't create view ?
create view ipoage as select 代码,上市日期, (julianday(date())-julianday(上市日期))/365 as years from ipo;
SQLiteManager: Likely SQL syntax error: create view test as
select 代码,上市日期, (julianday(date())-julianday(上市日期))/365 as years from ipo; [ no such table: main.ipo ]
Exception Name: NS_ERROR_FAILURE
Exception Message: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)

