Inserting TTime values in Symbian DB using SQL..

来源:互联网 发布:轩辕剑神骑进阶数据 编辑:程序博客网 时间:2024/06/04 01:00

 

I had been trying to insert TTime values using SQL statements and had real tough time getting the SQL string right. Firstly there is a complete specification for how to format values in the SQL statement when inserting it into the database. You can find it here: Symbian OS guide >> System libraries >> Using DBMS >> DBMS rowsets >> DBMS SQL >> Supported SQL subset So while inserting the date values do not forget to insert the '#' around the TTime values. Here is some sample code to do the same :

view plaincopy to clipboardprint?
Hope this saves you the time I wasted in finding the correct format.