Search
 
SCRIPT & CODE EXAMPLE
 

SQL

how to remove characters from string in mysql

#query 
UPDATE tableName SET columnName = REPLACE(columnName, 'charactersToBeReplaced', 'charactersToBeReplacedWith');

#you can use like this
UPDATE student_enroll_data SET student_name = REPLACE(student_name, '-gyg-', '');
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql change root mysql_native_password 
Sql :: base64 encode sql server 
Sql :: oracle search code in packages 
Sql :: mysql show table character set 
Sql :: Find all tables containing column with specified name - MS SQL Server 
Sql :: change column names mssql 
Sql :: rename column postgres 
Sql :: change column name mysql command line 
Sql :: mysql remove last character 
Sql :: if date is today mysql 
Sql :: oracle user last connection date 
Sql :: mysql delete row 
Sql :: start mysql server mac 
Sql :: syntax for changing column size in mysql 
Sql :: mysql take number in string 
Sql :: Create a keyspace cassandra 
Sql :: how to import database in mysql by cmd 
Sql :: show databases mysql docker 
Sql :: drop column if exists sql server 
Sql :: sql delete last row 
Sql :: mysql calculate age 
Sql :: get month of date sql 
Sql :: sql beginning of previous month 
Sql :: pl sql dynamic sql drop doesnt work 
Sql :: oracle scan source ddl 
Sql :: oracle nls session 
Sql :: postgres show current role 
Sql :: psql: error: FATAL: role "postgres" does not exist 
Sql :: sql order by timestamp 
Sql :: postgresql difference between two dates in days 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =