User Tag List

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 34

Thread: Anyone knows how to use SQL object?

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Location
    Córdoba - Argentina
    Posts
    244
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Anyone knows how to use SQL object?

    i can basicaly use it, the only thing i can't do is create a column inside a table... y can create a table but empty.. anyone knows how? (srry about my english).. tnx so much ^^

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    May 2007
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Anyone knows how to use SQL object?

    Normally you'd create a table like this:

    Code:
    CREATE TABLE tablename( Code int, Description varchar(256))

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    May 2007
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Anyone knows how to use SQL object?

    Suppose that you wish to add a field later, you'd do like this:

    Code:
    ALTER TABLE tablename ADD newfieldname varchar(256)
    Hope that helps.

  4. #4
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Anyone knows how to use SQL object?

    If you are using SQLite, Alter table doesn't work. But most SQL queries work like in any other db, i don't see any problem for filling your tables.

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    May 2007
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Anyone knows how to use SQL object?

    ALTER TABLE does work in SQLite. There is a minor difference or two but it does work.

    More here.

  6. #6
    No Products Registered

    Join Date
    Sep 2006
    Location
    Córdoba - Argentina
    Posts
    244
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Anyone knows how to use SQL object?

    Nope, it's not working... SQLite for MMF2 doesn't support ALTER and i don't know how to create a column inside a table.. can't understand the parameters right. Can anyone please make an example that helps me understand this thing? Tnx a lot guys!! ^^

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Anyone knows how to use SQL object?

    I'm no expert when it comes to SQLite but this might be of help!
    http://www.sqlite.org/lang_altertable.html

  8. #8
    No Products Registered

    Join Date
    Sep 2006
    Location
    Córdoba - Argentina
    Posts
    244
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Anyone knows how to use SQL object?

    Thank you Daniel, but the MMF version for SQLite doesn't support the ALTER command.. tnx anyway ^^

  9. #9
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Anyone knows how to use SQL object?

    If the extension is based on SQLite, it should!
    I don't think SQLite supports any other method to add columns to a table...

  10. #10
    No Products Registered

    Join Date
    Sep 2006
    Location
    Córdoba - Argentina
    Posts
    244
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Anyone knows how to use SQL object?

    Hi again, ok.. if you can create a colum into a tab, please make an example and i'll apreciate it a lot ^^ ... ( again.. srry about my english.. >_< )

Page 1 of 4 1 2 3 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •