 |
|
Junior Member
|

05-30-2021
, 13:03
Re: Check if table exsits.
|
#3
|
Quote:
Originally Posted by Bugsy
In your CREATE TABLE script, use the below to define steam_id:
Code:
steam_id varchar(34) UNIQUE
and then to INSERT or UPDATE, use REPLACE INTO. This will create new if not exists or over-write the data for a given steam id if it exists.
Code:
REPLACE INTO users_maps (steam_id, session_id, map) VALUES ('%s', '%s', '%s' );", steam, readMatchID, map_name);
|
Thanks i will try!
|
|
|
|