×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jun 2007
    Posts
    54

    how to "UPDATE" a symbian database?

    I would like to know why does my code dont work. It display KERRAGUMENT error.


    Code:
    import e32db
     
    import sys
    sys.path.append(__exec_path)
    from db import db
    
     
    mydb = db('C:\\bms\\tr.db') 
    mydb.query("select sum(totamount) as tot from DocHeader")
    for row in mydb:    
        print "-> ",row[0], " <-"
    Guys who is expert in symbian db, please help.

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: how to "UPDATE" a symbian database?

    hi rsf,

    I don't have much experience with database in pys60 but still i think we need to write u"C:\\bms\\tr.db" and i couldn't get where did you open the database?

    If i am telling you something wrong please rectify me.
    IDEAS is all they need but still they think only Genius can give them that.

  3. #3
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    57

    Re: how to "UPDATE" a symbian database?


  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: how to "UPDATE" a symbian database?

    Hi rsf
    i cant actually spot out the problem but i guess the problem in your given code may be with the path of the file you are appending just have a check on that.

Similar Threads

  1. Replies: 35
    Last Post: 2009-04-11, 14:36
  2. Symbian MMF with RTP
    By swatiSymbi in forum Symbian Media (Closed)
    Replies: 11
    Last Post: 2008-02-18, 12:25
  3. Database Size on Symbian OS with C++
    By anupamcins in forum Symbian
    Replies: 2
    Last Post: 2004-08-05, 08:15
  4. Replies: 2
    Last Post: 2003-08-19, 16:39
  5. setting of Series 60 MIDP SDK for Symbian OS version 1.2 for networking
    By servigo in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2003-07-31, 07:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×