As asking a request to the database, connect two lines into one, ie:

db.execute("INSERT INTO portfolios (name, amount, taked_books) VALUES(:whotaked, :amount, :name + ' ' + :author)", name=name,author=author,amount=amount,whotaked=who_taked) 

Do you want the variable name and author to merge?

PS If you do this:

 :name + ' ' + :author 

Then the value 0.0 is entered into the database.

  • one
    What programming language are we talking about? Add a label to the question mark - MaxU
  • And if so: concat (: name, '',: author)? - msi
  • one
    Those. religion does not allow to write like this db.execute("INSERT INTO portfolios (name, amount, taked_books) VALUES(:whotaked, :amount, :taked_books)", taked_books=name + ' ' + author, amount=amount, whotaked=who_taked) - ArchDemon 2:44 pm

0