How do you keep accounts data?
#8

Quote:
Originally Posted by Vince
Посмотреть сообщение
The JOIN keyword is probably the most important keyword there is. If you do not known what this is or what it does then you're not ready to use SQL just yet.
Well, in particular, I almost never use JOIN keyword in my gamemode's queries. Most time I need just a few fields from foreign table so I use, for example, SELECT vehicle.*, account.login FROM vehicle, account WHERE vehicle.id = 12 AND vehicle.owner = account.id.

Of course you must know about JOIN before you start using SQL, but queries may be OK without it. I said this just because many people start doing exactly the same things they read from someone's comment (especially with high rep) and think that their queries are wrong because there's no JOIN in them.
Reply


Messages In This Thread
How do you keep accounts data? - by prineside - 20.09.2015, 14:03
Re: How do you keep accounts data? - by iZN - 20.09.2015, 14:11
Re: How do you keep accounts data? - by Ritzy2K - 20.09.2015, 15:01
Re: How do you keep accounts data? - by Dairyll - 20.09.2015, 15:01
Re: How do you keep accounts data? - by XBrianX - 20.09.2015, 15:26
Re: How do you keep accounts data? - by Gammix - 20.09.2015, 15:27
Re: How do you keep accounts data? - by Vince - 20.09.2015, 16:04
Re: How do you keep accounts data? - by prineside - 20.09.2015, 16:46
Re: How do you keep accounts data? - by SchurmanCQC - 20.09.2015, 16:48
Re: How do you keep accounts data? - by n0minal - 20.09.2015, 16:51

Forum Jump:


Users browsing this thread: 2 Guest(s)