Further to postgres on Rails in Fedora 18 but OT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





http://lists.fedoraproject.org/pipermail/users/2013-May/435615.html

Sorry deleted your message and then was viewing it on the web.

You write:
Booking_development=> SELECT "registers".* FROM "registers" ORDER BY
lname shows nothing because it's a database not a table, but I do not
understand how to get at it's tables'.

I reply:

The syntax implies that you have a schema by the name of "registers."

Are you trying to see everything in the "registers" table?

If so, I would first check to see what tables are available in booking_development

From a psql prompt, type: \dt

That should show you the tables that are in the public schema; do you also have other schemas? Typing
\dt *.*
can give you verbose results but it should show you other schemas if they are there.

If all you want to do is to see what is in the "registers" table, then the SQL would be:
SELECT * FROM registers ORDER BY lname
(providing "lname" is a field in the "registers" table).

Hope that helps,

Max Pyziur
pyz@xxxxxxxxx
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux