logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
SQL Table Fields

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
Katofiad



Joined: 25 Jul 2006
Posts: 3

PostPosted: Tue Jul 25, 2006 21:32    Post subject: SQL Table Fields Reply with quote

Im trying write a script that will create a custom table for use in my persistent world. When the APS system creates the pwdata table it creates several fields with different names. Followed by these names are field types such as

  • varchar(64)
  • int(11)


What do these field type represent? Does the number in the paranthesis signify the number of characters that field can hold? Or is it the size in bytes?
Back to top
View user's profile Send private message MSN Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Tue Jul 25, 2006 22:23    Post subject: Reply with quote

It depends on the data type. For MySQL varchars, it's the maxium size, for ints, it's the display length.

http://dev.mysql.com/doc/refman/5.0/en/data-types.html
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Katofiad



Joined: 25 Jul 2006
Posts: 3

PostPosted: Tue Jul 25, 2006 22:50    Post subject: Reply with quote

Thanks that clarified some things and gave me a great site to access for more SQL questions! Very Happy
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group