
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How to search for ^ character in a MySQL table?
To search for ^ character, use the LIKE operator as in the below syntax −
select table_schema,table_name,column_name from information_schema.columns where column_name like '%^%';
Let us first create a table −
mysql> create table DemoTable1826 ( `^` varchar(20), Name varchar(20), `^Age` int ); Query OK, 0 rows affected (0.00 sec)
Here is the query to search for ^ character in a MySQL table
mysql> select table_schema,table_name,column_name from information_schema.columns where column_name like '%^%';
This will produce the following output −
+--------------+---------------+-------------+ | TABLE_SCHEMA | TABLE_NAME | COLUMN_NAME | +--------------+---------------+-------------+ | web | demotable1826 | ^ | | web | demotable1826 | ^Age | +--------------+---------------+-------------+ 2 rows in set (0.00 sec)
- Related Articles
- How to search a MySQL table for a specific string?
- Perform search/replace for only the first occurrence of a character in MySQL table records?
- How to replace a character in a MySQL table?
- MySQL Regex to match a pattern for ignoring a character in search like Chris.Brown?
- How to search a record by date in MySQL table?
- How to search for files using the wildcard character (*) in PowerShell?
- How to search for a date in MySQL timestamp field?
- How to search for exact string in MySQL?
- Search for a character from a given position in Java
- How to search a column for an exact string in MySQL?
- How to add a specific character to any empty space in MySQL table values?
- Perform search/replace for only the first occurrence of a character with session variable in MySQL
- How to search for the exact string value in MySQL?
- How can I search within a table of comma-separated values in MySQL?
- How do I search for names starting with A in MySQL?

Advertisements