1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Copy MySQL table field to notepad line by line

Discussion in 'MySQL' started by richu, Jan 31, 2008.

  1. #1
    Hello Friends

    I need your help . I want to know how can i copy all the email address from my mysql table "users" to a notepad file line by line ie , one record or one email address in one line .
    My database name is friends .
    MY table name is users
    And , Field name is email .

    Please tell me how to do that .
     
    richu, Jan 31, 2008 IP
  2. richu

    richu Peon

    Messages:
    460
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    can someone help me out ? Please ..
     
    richu, Jan 31, 2008 IP
  3. bigboy20

    bigboy20 Guest

    Messages:
    172
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    just copy and export the email field dude.
     
    bigboy20, Jan 31, 2008 IP
  4. richu

    richu Peon

    Messages:
    460
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    How to copy and export that single field ?
     
    richu, Jan 31, 2008 IP
  5. adams2on

    adams2on Peon

    Messages:
    30
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I don't know of any single command or operation to accomplish this - but here are two ways to approach it. One way is to use the SQL command

    SELECT EMAIL FROM USERS ORDER BY EMAIL ASC

    Run it so that you can see the output - then copy the output and paste it into a notepad file.
    Or export as CSV, import into Excel or Open Office Spreadsheet, delete the columns you don't want, keeping only the "email" column.
     
    adams2on, Jan 31, 2008 IP
  6. Kuldeep1952

    Kuldeep1952 Active Member

    Messages:
    290
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #6
    In Phpmyadmin, run this query

    select email from users

    Use the export link at page bottom to export the result, and only email will appear in the result.

    Select CSV format for saving the data.
     
    Kuldeep1952, Jan 31, 2008 IP
    adams2on likes this.
  7. richu

    richu Peon

    Messages:
    460
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks a lot friends . Your reply really helped me .
     
    richu, Feb 1, 2008 IP
  8. dewpal

    dewpal Member

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #8
    Select Email From Users Order By Email Asc
     
    dewpal, Feb 2, 2008 IP