Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
How to delete '\\\\' entry in MySQL?
You can use delete command −
delete from yourTableName where yourColumnName='\\';
Let us first create a table −
mysql> create table DemoTable ( FolderName varchar(100) ); Query OK, 0 rows affected (0.67 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values("????");
Query OK, 1 row affected (0.44 sec)
mysql> insert into DemoTable values("\\");
Query OK, 1 row affected (0.13 sec)
Display all records from the table using select statement −
mysql> select *from DemoTable;
Output
+------------+ | FolderName | +------------+ | ???? | | \ | +------------+ 2 rows in set (0.00 sec)
Here is the query to delete '\' entry in MySQL −
mysql> delete from DemoTable where FolderName='\\'; Query OK, 1 row affected (0.63 sec)
Let us check the record from the table −
mysql> select *from DemoTable;
Output
+------------+ | FolderName | +------------+ | ???? | +------------+ 1 row in set (0.00 sec)
Advertisements
