Why every parametr (string) which i try to puy instead '(?)' python gives me this problem?
item2 = str(message.sender.username)
print(message.sender.username)
sqlloc = ("create table (?) (" \
" chat_id INTEGER NOT NULL PRIMARY KEY,"\
" locpar varchar(20)," \
" stoppar varchar(20)," \
" locdes varchar(20) ," \
" stopdes varchar(20));", item2)
connloc.execute(sqlloc)
Outuput:
Abdul_gan
operation parameter must be str