Sometimes we need to add demo text in a website for checking whether it working fine or somewhere we test website with demo text. So on this case unwanted text inserted into database and you need to remove it. So, we can update fields with random sentence in this case.
For example the fields value will be different.
Just like below:
Suspendisse accumsan lacinia nisi vel posuere. Nam et ante pretium at dapibus. Suspendisse accumsan lacinia nisi vel posuere. Nam et ante pretium at dapibus.
But you don’t need to remove it just update the fields with random text and your text will looks as collection of words.
Read Also: Update from one table to another with condition in MySQL
UPDATE `tbl_demo` set `field` = concat( (substring("ABCDEFGHIJKLMNOPQRSTUVWXYZ", rand()*36+1, 2)), (substring("abcdefghijklmnopqrstuvwxyz", rand()*36+1, 10)), (" "), (substring("abcdefghijklmnopqrstuvwxyz", rand()*36+1, 8)), (" "), (substring("abcdefghijklmnopqrstuvwxyz", rand()*36+1, 9)), (" "), (substring("abcdefghijklmnopqrstuvwxyz", rand()*36+1, 10)), (" "), (substring("abcdefghijklmnopqrstuvwxyz", rand()*36+1, 7)), (" "), (substring("abcdefghijklmnopqrstuvwxyz", rand()*36+1, 10))) where `id` = 1
Why Maintenance Feels Overwhelming Most homeowners know they should maintain their roof, but many avoid…
Being involved in a car accident, whether it’s a minor or major collision can be…
Have you or your loved one been involved in a truck accident? Dealing with a…
Divorce is a serious decision that many families, unfortunately, face on a daily basis. It…
For anyone trying to grow an online presence, interaction is just as important as publishing…
In today's competitive academic world, students are constantly juggling multiple responsibilities, from preparing for exams…