Error inserting data in playlist

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prettypython
    New Member
    • Jan 2013
    • 6

    Error inserting data in playlist

    Hi went i add things into my database such as:

    (file name, file path etc)
    into the database sqlite

    either i got:
    sqlite3.Operati onalError: no such column:
    or
    sqlite3.Operati onalError: unrecognized token: ":"
    when insert path (e.g. 'D:\music\blue. mp3'


    Anyone knows how can solve this?
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    Try escaping the backslashes as in "\\", pass the raw string as in r"D:\music\blue .mp3", or use forward slashes instead of backslashes.

    Comment

    • Rabbit
      Recognized Expert MVP
      • Jan 2007
      • 12517

      #3
      It would help to see the code you're using along with a description of the table design.

      Comment

      • prettypython
        New Member
        • Jan 2013
        • 6

        #4
        Click image for larger version

Name:	database sqlite.PNG
Views:	1
Size:	9.1 KB
ID:	5413552

        This is the table.

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          Please respond to the first half of my post.

          Comment

          Working...