Link to home
Start Free TrialLog in
Avatar of tjazzvibe
tjazzvibe

asked on

drupal query question

i have a question about this query:

db_query_range('SELECT c.* FROM {comments} c WHERE c.status = %d ORDER BY c.timestamp', COMMENT_NOT_PUBLISHED, 0, $num_posts);

i understand the query, but the c.* and c.status.... what's happening here? is the table name >>> comments being turned into a nickname or variable? one called >> c. it would normally be comments.status right? and comments.*

i know the brackets are a drupalism so maybe the c is also.

thanks for your help
tony


ASKER CERTIFIED SOLUTION
Avatar of ee_rlee
ee_rlee
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tjazzvibe
tjazzvibe

ASKER

ok so an alias is a 'name' that follows the table. i get it, and i can look it up now.

thanks
thanks