Raised This Month: $ Target: $400
 0% 

Check if table exsits.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
erickvan
Junior Member
Join Date: Dec 2020
Old 05-30-2021 , 13:03   Re: Check if table exsits.
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
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!
erickvan is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode