Insert file data into text field

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob

    #1

    Insert file data into text field

    Hey, I'm pretty new to MySQL and have a question.

    I've built a database locally and have inputed some information. I
    need to go back and update some records, specifically by taking long
    pieces of text and putting them into text fields.

    Cutting and pasting in the command prompt for windows isn't such a
    good idea. Is there a way to update an existing record by importing a
    text file into a text field?

    All the info I'm seeing in the MySQL manual and in these groups is for
    importing text-deliniated files.

    Thanks in advance.
  • swdev1

    #2
    Re: Insert file data into text field

    Rob - another possibility would be to use a sql query tool ..
    I am a big fan of mySqlFront - but its not supported any more. Its still
    around for download .

    On the other hand - I have written some data maintenance programs in VFP for
    mySql.
    You could do the same thing, if you wanted to - its very straightforward .

    hth - mondo regards [Bill]
    --
    William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
    email.
    FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
    mySql / VFP / MS-SQL
    "Rob" <robx2@hotmail. com> wrote in message
    news:18ee9096.0 308091034.7cada 8a8@posting.goo gle.com...[color=blue]
    > Hey, I'm pretty new to MySQL and have a question.
    >
    > I've built a database locally and have inputed some information. I
    > need to go back and update some records, specifically by taking long
    > pieces of text and putting them into text fields.
    >
    > Cutting and pasting in the command prompt for windows isn't such a
    > good idea. Is there a way to update an existing record by importing a
    > text file into a text field?
    >
    > All the info I'm seeing in the MySQL manual and in these groups is for
    > importing text-deliniated files.
    >
    > Thanks in advance.[/color]


    Comment

    • swdev1

      #3
      Re: Insert file data into text field

      Rob - another possibility would be to use a sql query tool ..
      I am a big fan of mySqlFront - but its not supported any more. Its still
      around for download .

      On the other hand - I have written some data maintenance programs in VFP for
      mySql.
      You could do the same thing, if you wanted to - its very straightforward .

      hth - mondo regards [Bill]
      --
      William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
      email.
      FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
      mySql / VFP / MS-SQL
      "Rob" <robx2@hotmail. com> wrote in message
      news:18ee9096.0 308091034.7cada 8a8@posting.goo gle.com...[color=blue]
      > Hey, I'm pretty new to MySQL and have a question.
      >
      > I've built a database locally and have inputed some information. I
      > need to go back and update some records, specifically by taking long
      > pieces of text and putting them into text fields.
      >
      > Cutting and pasting in the command prompt for windows isn't such a
      > good idea. Is there a way to update an existing record by importing a
      > text file into a text field?
      >
      > All the info I'm seeing in the MySQL manual and in these groups is for
      > importing text-deliniated files.
      >
      > Thanks in advance.[/color]


      Comment

      • swdev1

        #4
        Re: Insert file data into text field

        Another scenario for you -
        if your tables have primary keys -
        you can issue an update command from php ..
        [following is pseudoCode]
        update tablename set fieldname = textstringvalue where pkfield = 'your
        selection criteria'
        ---
        and of course - instead of some copy paste - you can use php to auto gen the
        php code you want to run, with the right PK values, line by line, so you
        have as many update lines as you need ..

        lemme know your thoughts??
        mondo regards [Will]
        --
        William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
        email.
        FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
        mySql / VFP / MS-SQL
        "Rob" <robx2@hotmail. com> wrote in message
        news:18ee9096.0 308091034.7cada 8a8@posting.goo gle.com...[color=blue]
        > Hey, I'm pretty new to MySQL and have a question.
        >
        > I've built a database locally and have inputed some information. I
        > need to go back and update some records, specifically by taking long
        > pieces of text and putting them into text fields.
        >
        > Cutting and pasting in the command prompt for windows isn't such a
        > good idea. Is there a way to update an existing record by importing a
        > text file into a text field?
        >
        > All the info I'm seeing in the MySQL manual and in these groups is for
        > importing text-deliniated files.
        >
        > Thanks in advance.[/color]


        Comment

        • swdev1

          #5
          Re: Insert file data into text field

          Another scenario for you -
          if your tables have primary keys -
          you can issue an update command from php ..
          [following is pseudoCode]
          update tablename set fieldname = textstringvalue where pkfield = 'your
          selection criteria'
          ---
          and of course - instead of some copy paste - you can use php to auto gen the
          php code you want to run, with the right PK values, line by line, so you
          have as many update lines as you need ..

          lemme know your thoughts??
          mondo regards [Will]
          --
          William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
          email.
          FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
          mySql / VFP / MS-SQL
          "Rob" <robx2@hotmail. com> wrote in message
          news:18ee9096.0 308091034.7cada 8a8@posting.goo gle.com...[color=blue]
          > Hey, I'm pretty new to MySQL and have a question.
          >
          > I've built a database locally and have inputed some information. I
          > need to go back and update some records, specifically by taking long
          > pieces of text and putting them into text fields.
          >
          > Cutting and pasting in the command prompt for windows isn't such a
          > good idea. Is there a way to update an existing record by importing a
          > text file into a text field?
          >
          > All the info I'm seeing in the MySQL manual and in these groups is for
          > importing text-deliniated files.
          >
          > Thanks in advance.[/color]


          Comment

          Working...