Mysql update with replace and select

ATTENZIONE:
AVVISO! Le informazioni di questo post potrebbero non essere più valide in quanto non aggiornate. Usa i commenti per contribuire a tenere il post aggiornato.

ULTIMA REVISIONE DEL POST: 26/11/2017


Today, the my lesson speaks of mysql query (update partial of parameter and select).
Query of select:
SELECT field FROM `table` WHERE field LIKE ‘%text%’
use % for select a partial text of field

Query of update:
UPDATE `table` SET field = REPLACE(field,”text1″,”text2″)
text 1 is a partial text to you replace into field of text with text 2

 

Informazioni su Gua78

Amministratore del Portale
Questa voce è stata pubblicata in Programmazione, Programmi, Sicurezza e contrassegnata con , , , . Contrassegna il permalink.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.