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 
 
Table Columns

 
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: Wed Jul 26, 2006 5:51    Post subject: Table Columns Reply with quote

Can you create a new field entry column in a table on the fly? Lets say I created a table called "player" and with the columns "name", "race", "class", and "level. Later on the Player Character adds a second class to his or her character. Can I add the fields "class2" and "level2" on the fly? Or would I have to delete the current table and create a new one?

Im using SQLiteCC via the NWNX2 plug-in.
Back to top
View user's profile Send private message MSN Messenger
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Wed Jul 26, 2006 7:23    Post subject: Re: Table Columns Reply with quote

Katofiad wrote:
Can you create a new field entry column in a table on the fly? Lets say I created a table called "player" and with the columns "name", "race", "class", and "level. Later on the Player Character adds a second class to his or her character. Can I add the fields "class2" and "level2" on the fly? Or would I have to delete the current table and create a new one?

Im using SQLiteCC via the NWNX2 plug-in.


Its just a SQL command issued via SQLExecDirect.

With MySQL its no problem, SQLite is harder and you have to have the correct DLLs for the version that supports it. Don't expect to Sad
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Wed Jul 26, 2006 21:13    Post subject: Reply with quote

"On the fly" sounds like an SQL command. Again, here's the link:

http://www.sqlite.org/lang_altertable.html

Quote:
SQLite's version of the ALTER TABLE command allows the user to rename or add a new column to an existing table. It is not possible to remove a column from a table.

_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website 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