Raised This Month: $ Target: $400
 0% 

help with using sqlx


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mamistikfistik
Junior Member
Join Date: Feb 2024
Old 02-09-2024 , 19:31   Re: help with using sqlx
Reply With Quote #8

Quote:
Originally Posted by Bugsy View Post
So you need to query for the SteamID and LastName and if no record exists, insert both fields as a new record?
Let me give an example here. How can I subtract Steam_ID and LastName? Let's say I gave Steam_ID 123, how can I get the equal LastName?

CREATE TABLE IF NOT EXISTS `players` (
`ID` int NOT NULL AUTO_INCREMENT,
`Steam_ID` varchar(32) NOT NULL,
`LastName` varchar(32) DEFAULT 'None',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=421 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
mamistikfistik 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 00:33.


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