Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2006
    Location
    Colombia
    Posts
    62

    How do sqlite consultations in the form:

    SQuery = "SELECT * WHERE from Phonebook (the first 20 entries);
    or SQuery = "SELECT * WHERE from Phonebook (of 20 in 20);

  2. #2
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Get the first 20 records:
    Code:
    SQuery = "SELECT * FROM Phonebook Limit 0,20"
    Get the next 20 records:
    Code:
    SQuery = "SELECT * FROM Phonebook Limit 20,20"
    Get the next 20 records:
    Code:
    SQuery = "SELECT * FROM Phonebook Limit 40,20"
    The first number after Limit is the offset or the number of records to skip at the beginning of the table. The second number is the number of records to return. This comes in handy when you want to page through records 20 or so at a time. You would just use variables for the offset and limit.
    Dermot

    I am so out of here

  3. #3
    Join Date
    Dec 2006
    Location
    Colombia
    Posts
    62
    Thanks .. I thank you for your help

  4. #4
    Join Date
    Dec 2006
    Location
    Colombia
    Posts
    62
    Thanks .. I thank you for your help

    Also in this way:
    sUsersQuery = "Select *from Question WHERE (entryid <"..nRecordID..")";

  5. #5
    Join Date
    Jul 2007
    Posts
    1,512
    just a Question about this say if you just have a standard DB for a AMS progarm what stoped a hacker interjecting the DB?

  6. #6
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Quote Originally Posted by rexzooly View Post
    just a Question about this say if you just have a standard DB for a AMS progarm what stoped a hacker interjecting the DB?
    Not sure what that has to do with this. Also not sure what you mean by "standard DB". If you mean SQLite then anyone that has any tool that can read and write an SQLite database can view and edit data. That's the same for most databases unless they have the ability to password protect them.
    Dermot

    I am so out of here

  7. #7
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by Dermot View Post
    Not sure what that has to do with this. Also not sure what you mean by "standard DB". If you mean SQLite then anyone that has any tool that can read and write an SQLite database can view and edit data. That's the same for most databases unless they have the ability to password protect them.
    well its was SQlite like i was on about i didn't see the need to restat a new post when there was one already one about SQlite running i know theres ways to stop people interjecting mysql data bases just wonders if there is for SQlite


    sorry if i have pushed in anyway but it dose call under SQlite and i didn't want
    a pointless post so i thought it best to ask here.

Similar Threads

  1. SQLite database in MEMORY only!
    By Intrigued in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 10-23-2009, 07:49 PM
  2. How to convert access database to sqlite database.
    By sside in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 07-22-2008, 07:44 PM
  3. SQLite version - 2x or 3x
    By sferguson in forum AutoPlay Media Studio 7.5
    Replies: 7
    Last Post: 02-02-2008, 10:09 AM
  4. Spotlight: SQLite Actions Plugin
    By Desmond in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 03-12-2004, 09:11 AM

Posting Permissions

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