Referencing the Table Name

This is a discussion on Referencing the Table Name within the MySQL Database forums, part of the Database Forums category; Say I have a Table called Predator: country(varchar 20), animal(varchar 20) And I want to search for the ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-04-2006
Dan J.
 
Posts: n/a
Default Referencing the Table Name


Say I have a Table called Predator: country(varchar 20),
animal(varchar 20)

And I want to search for the animal "Python" in my Predator table, but
if it is present, I want
to simply reference the name of the table...so "Predator" would
return. I am sure this is really
simple, but I have looked and looked with no luck.

Thank You Very Much,
Dan

Reply With Quote
  #2 (permalink)  
Old 03-04-2006
Bill Karwin
 
Posts: n/a
Default Re: Referencing the Table Name

"Dan J." <spwpreston@gmail.com> wrote in message
news:1141461706.226104.4060@i39g2000cwa.googlegrou ps.com...
> And I want to search for the animal "Python" in my Predator table, but
> if it is present, I want to simply reference the name of the table...so
> "Predator" would
> return.


SELECT DISTINCT 'Predator'
FROM Predator
WHERE animal = 'Python'

Regards,
Bill K.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:27 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0