Forezz

da

Apr 3rd, 2021
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. if b != '':
  2. b = 'Surname = "{}"'.format(b)
  3. if c !='':
  4. c = 'Name = "{}"'.format(c)
  5. if b !='':
  6. c = ', ' + c
  7. if d !='':
  8. d = 'Otcestvo = "{}"'.format(d)
  9. if b !='' or c !='':
  10. d = ', ' + d
  11. q1 = "UPDATE athtor SET {1}{2}{3} WHERE id='{0}".format(a, b, c, d)
Advertisement
Add Comment
Please, Sign In to add comment