Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating Tables in SQL
#1
Trying to create a create a table in SQL based on user input for example:
City= input(blah blah)
C.execute(CREATE TABLE IF NOT EXISTS ????? )
Reply
#2
Hi,

your code won't work. Line 1 will give a NameError and assuming the code would move to line 2, it gives a NameError as well.

In case you need help, it may be an extremely good idea to describe your problem with more than one sentence and show at least Python code which does not contain super obvious errors.
If you have no motivation to achieve something, why we should put any efforts in helping you to solve your problem?

Regards, noisefloor
Reply
#3
Not to mention that this is a super standard problem and that complete solutions can easily be found on the web.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I need help creating tables with Sqlite3 Rius2 3 5,351 Sep-28-2017, 05:49 AM
Last Post: Rius2

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020