473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

SQLLITE

Hello All,
I am having a minor problem when I try and do this:
c.execute("insert into [tblTranscripts] (MovieID,Transcript)
Values(" + movieID + ",'" + formatText + "');") (don't even bother
commenting of the sql style I know its bad form but this is a simple
script). Whenever I try and do the insert I get table not found,
however when I perform the sql through sqlite's command line program
(the sql is outputted via a print statement) it works fine. Any ideas?
Mar 1 '08 #1
3 2340
nexes schrieb:
Hello All,
I am having a minor problem when I try and do this:
c.execute("insert into [tblTranscripts] (MovieID,Transcript)
Values(" + movieID + ",'" + formatText + "');") (don't even bother
commenting of the sql style I know its bad form but this is a simple
script). Whenever I try and do the insert I get table not found,
however when I perform the sql through sqlite's command line program
(the sql is outputted via a print statement) it works fine. Any ideas?
No, and without more context nobody will have. Does working with the
table with other statments work, how do you connect the DB, are you sure
you really use the same DB-file and so forth.

Diez
Mar 1 '08 #2
On Mar 1, 11:54*am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
nexes schrieb:
Hello All,
* *I am having a minor problem when I try and do this:
* * * c.execute("insert into [tblTranscripts] (MovieID,Transcript)
Values(" + movieID + ",'" + formatText + "');") * (don't even bother
commenting of the sql style I know its bad form but this is a simple
script). Whenever I try and do the insert I get table not found,
however when I perform the sql through sqlite's command line program
(the sql is outputted via a print statement) it works fine. *Any ideas?

No, and without more context nobody will have. Does working with the
table with other statments work, how do you connect the DB, are you sure
you really use the same DB-file and so forth.

Diez
There's a number of things it could be-- narrow it down a little more
(for the reader). Beginner stuff is usually forgetting 'use
moviedata'.
Mar 1 '08 #3
I am having a minor problem when I try and do this:
c.execute("insert into [tblTranscripts] (MovieID,Transcript)
Values(" + movieID + ",'" + formatText + "');") (don't even bother
commenting of the sql style I know its bad form but this is a simple
script). Whenever I try and do the insert I get table not found,
however when I perform the sql through sqlite's command line program
(the sql is outputted via a print statement) it works fine. Any ideas?
No, and without more context nobody will have. Does working with the
table with other statments work, how do you connect the DB, are you sure
you really use the same DB-file and so forth.
Beginner stuff is usually forgetting 'use moviedata'.
This is not needed for sqlite. The database is defined by the file the
sqlite executable is working on.
Mar 3 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Lothar Scholz | last post by:
Because PHP5 does not include the mysql extension any more is there a chance that we will see more Providers offering webspace with Firebird or Postgres Databases ? What is your opinion ? I must...
0
by: lawrence | last post by:
Can anyone share with me some code they are using involving transactions and SQLLite? Show me an update? Anything?
1
by: Simon Roses Femerling | last post by:
Thx for your response sqllite looks very interesting :) Here is the python module: http://sourceforge.net/projects/pysqlite/ I'm familiar with mysql and postgresql but there are too heavy and...
4
by: pet100us | last post by:
Hi, Is there some program that is simular to java's hsqldb (http://hsqldb.sourceforge.net/). It is a relational database that can easily be used within a small java program without installing a...
33
by: Will McGugan | last post by:
Hi, I'd like to write a windows app that accesses a locally stored database. There are a number of tables, the largest of which has 455,905 records. Can anyone recommend a database that runs...
2
by: mir nazim | last post by:
hello, i am writing an application and need to access mysql od sqllite from javascript. is it possible to access mysql/sqllite (or any free lightweight relational databse) directly from...
1
by: jeanmarc | last post by:
Bonjour les pros ! Je tente de me connecter à une base sqllte et j'obtiens systematiquement le message : if ($db = sqlite_open('mysqlitedb', 0666, $sqliteerror)) { sqlite_query($db,'CREATE...
0
by: David | last post by:
- Are there any peculiarities with using curs.executemany(...) vs. multiple How many times are you calling execute vs a single executemany? The python call overhead will add up for thousands of...
2
by: rohitskapoor | last post by:
Hi, I am trying to run this code on the Linux box... <?php // create a SQLite3 database file with PDO and return a database handle (Object Oriented) try{
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.