Raised This Month: $ Target: $400
 0% 

Solved Problems with mysql table column


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-08-2020 , 13:47   Re: Problems with mysql table column
Reply With Quote #1

Show the SQL. Query of creating the table.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Old 07-08-2020, 13:55
l00ka
This message has been deleted by l00ka.
l00ka
Junior Member
Join Date: Sep 2012
Old 07-08-2020 , 13:58   Re: Problems with mysql table column
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
Show the SQL. Query of creating the table.
HTML Code:
query = SQL_PrepareQuery(link, 
		"CREATE TABLE IF NOT EXISTS `results`( \
			id		INT(11)		UNSIGNED, \
			mid 		INT(11) 	UNSIGNED, \
			besttime	INT(11) 	NOT NULL, \
			games		INT(11) 	NOT NULL, \
			playedtime	INT(11)		NOT NULL, 	\
			deaths		INT(11)		NOT NULL, 	\
			FOREIGN KEY(id) REFERENCES `runners`(id) ON DELETE CASCADE, \
			FOREIGN KEY(mid) REFERENCES `maps`(mid) ON DELETE CASCADE, \
			PRIMARY KEY(id, mid) \
		)");
	SQL_Execute(query);
	SQL_FreeHandle(query);
	
	query = SQL_PrepareQuery(link, 
		"ALTER TABLE `results` \
		ADD 	recorddate	DATETIME	NULL");
		
	SQL_Execute(query);
	SQL_FreeHandle(query);
l00ka is offline
Reply



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 17:12.


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