python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Conditional increment of values in two rows after insert in MySQL
I currently have the following three tables in a football db:
teams(name)
season(name, beginning, end)
game(id, Date, season, hometeam, awayteam, HomeTeamScore, AwayTeamScore)
(hometeam, awayte...

user11626803
Votes: 0
Answers: 2
How to do an insert in the database with Python
I have a Python script that does the Moodle version check.
After checking the Moodle version I would like to insert into the database but I am getting the following error:
line 337
mycursor = db.curso...
Jhon Laurence
Votes: 0
Answers: 3
How can I write an SQL update command using %s in psycopg2 with python
I am new to python, currently learning. So I am using the psycopg2 library to run postgresql query and have an insert command like this:
cursor.execute(
"INSERT INTO test_case (run_id...

Alapan Das
Votes: 0
Answers: 1
INSERT SQL records from one database to a second (where 2nd has an additional column)
I'd like to insert select records from Table A --> Table B (in this example case, different "databases" == different tables to not worry about ATTACH), where Table A has less columns than...
jbplasma
Votes: 0
Answers: 1