» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 79
0 members and 79 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
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 ...


Go Back   Nukemods Forum » General » Open topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-05-2005, 03:01 PM
Member
 
Join Date: Jul 2004
Posts: 450
SQL Extract table field
Hi guys iam looking for a sql command/line of text, to print a certain field's content from a database table, results back in the query box etc.. ?

Any ideas much appreciated
Marty
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-05-2005, 03:15 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
first you select the value from the database, then you can add it in the textarea by using this
Code:
<textarea>$variable_containing_the_value_to_be_printed_in_the_box</textarea>
I hope this is what you meant, and I hope it helps you
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-05-2005, 03:35 PM
Member
 
Join Date: Jul 2004
Posts: 450
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 ?
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-05-2005, 03:47 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
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.
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-05-2005, 03:51 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
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.
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-05-2005, 04:06 PM
Member
 
Join Date: Jul 2004
Posts: 450
Ok thanks for looking into it...
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-05-2005, 05:27 PM
Member
 
Join Date: Jul 2004
Posts: 450
Oh I have been so stupid, here we go

Quote:
SELECT USER_ID
FROM table_name
Thats it, so simple :wink:
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Battle Field Vietnam site killerbee Showoff 10 12-29-2004 09:33 PM
Adding a field to the My Account Scott Nuke 6.5 to 6.9 - Modules 4 05-14-2003 06:11 PM
table adjustment ferhanz Open topics 0 05-12-2003 04:49 AM
Can't Extract superman42287 Purged Topics 2 02-25-2003 07:10 AM
How to add a table? zlaxzzor Purged Topics 3 11-21-2002 08:59 PM


All times are GMT -5. The time now is 10:27 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31