Raised This Month: $ Target: $400
 0% 

Generate a Random 6 Digit Random ID and Attach on SQL


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-14-2021 , 05:52   Re: Generate a Random 6 Digit Random ID and Attach on SQL
Reply With Quote #3

Or you know, you could just let SQL generate the ID by using AUTO INCREMENT. Manually generating the random ids has an (extremely small) chance of generating duplicate indexes.
__________________

Last edited by HamletEagle; 10-14-2021 at 05:53.
HamletEagle 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 11:43.


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