Results 1 to 3 of 3

Thread: MySQL variable counting

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Resolved MySQL variable counting

    SQL query...

    How can I count a number of items through SQL without incrementing a variable all the time... (taking a lot of process server-side for no reason)

    For instance,

    If I have a structure named 'crack-addicts', containing a string 'name', how can I count the number of 'crack-addicts' without selecting * and doing
    Code:
    count += 1
    and stuff...

    thx for the help!

    Last edited by Ruku; Jun 29th, 2005 at 10:44 PM.

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

Posting Permissions

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



Click Here to Expand Forum to Full Width