Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql remove last character

LEFT(col,length(col)-1) 
Comment

remove last characters in mysql

UPDATE <table_name>
SET <column_name> = CONCAT(LEFT(<column_name>, CHAR_LENGTH(<column_name>) -1), '')
WHERE <condition>;
Comment

PREVIOUS NEXT
Code Example
Sql :: postgresql newline character 
Sql :: mssql procedure 
Sql :: oracle error compilation line 
Sql :: oracle show errors 
Sql :: mysql datetime format 
Sql :: postgresql escape single quote 
Sql :: mysql add hours to time field 
Sql :: sql if null then string 
Sql :: how to import mysql database command line 
Sql :: soql more than today 
Sql :: insert into sql 
Sql :: duplicate record mysql 
Sql :: oracle lock user 
Sql :: mysql keyword search 
Sql :: sql mode 
Sql :: grant create db postgres 
Sql :: mysql switch case 
Sql :: sql server update top n records 
Sql :: sql server remove 0 from left 
Sql :: sql date with month and year only 
Sql :: Import zipped mysql dumps 
Sql :: add column mysql with foreign key 
Sql :: mysql query to select the highest value 
Sql :: what is unique key in sql 
Sql :: sql server inner join convert collation 
Sql :: Rows, INSERT INTO, Returning 
Sql :: insert data into multiple tables mysql 
Sql :: top frequency in sql server 
Sql :: sql field equals multiple values 
Sql :: sql track modification 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =