This is a discussion on SQL Extract table field within the Open topics forums, part of the General category; Hi guys iam looking for a sql command/line of text, to print a certain field's content from a database table, ...
Well firstly thanks for the reply, but no its not actually what I was looking for, my fault probably, didnt explain enough.
What I have a is Database with various tables, one of the tables has various fields the usually kinds, as they all do etc..
The table is just under 4mb, theres no problem exporting it as a text.sql file however iam only looking for one field within that table "User_ID"
Theres 6000+ lines along with all the other entries so I dont really want to start manually editing the file, just to get the User_Id's I was hoping there would be a SQl command that could be used within phpMyadmin , something that would extract the field data ?
Share4Gain.com- 80% Adsense Revenue Share, no website required
Ah you want an sql file that only has the USer_ID information??
I don't think that is possible, but I can check it out.
You can always get all the user_id's out of the table with a php script and then output it on your screen.
Nope, you can only export a table in a whole not the fields seperatly (which is actually really logic).
So if you want a list from all your user_id's I suggest printing them with a php script.