update on a column that is full of HTML

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2007
Posts: 3
Reputation: fclanton is an unknown quantity at this point 
Solved Threads: 0
fclanton fclanton is offline Offline
Newbie Poster

update on a column that is full of HTML

 
0
  #1
Dec 26th, 2007
i have a column "discription" in my item table that is full of HTML code. It was created using and editor like the one i am using here. It is five pages long when i print it out.

I need to update the column in all records of the table. It is full of single and double quotes. In the quarey i am trying to use update and it really fails badley.

I can update one row at a time but with 10K of records it will take some time.

Can i wrap this code in sometinge that will allow SQL not to go nuts when i try to use it as an update

OR

Can i edit one record and set all of the other records to equal the edited one
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 160
Reputation: kb.net is an unknown quantity at this point 
Solved Threads: 26
kb.net's Avatar
kb.net kb.net is offline Offline
Junior Poster

Re: update on a column that is full of HTML

 
0
  #2
Dec 31st, 2007
Hi,

How are you updating the table. 10K is not that big number when speaking about data bases.
It is never about the number of languages you know, you either have the logic of programming or you don't ...

Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,748
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 331
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: update on a column that is full of HTML

 
0
  #3
Dec 31st, 2007
If you are updating using php, you can use mysql_real_escape_string or addslashes to escape all the special characters like \, ' and ".
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC