- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Usage of backtick in SQL statements?
The backtick can be used in MySQL. To create a table, we can put table_name in backticks.
Example of Backtick in MySQL.
The CREATE command is used to create a table. Here, we have added the table name using the backtick symbol.
mysql> create table `backtickSymbol` -> ( -> uniId int -> ); Query OK, 0 rows affected (1.65 sec)
Records are inserted with the help of INSERT command.
mysql> insert into `backtickSymbol` values(1); Query OK, 1 row affected (0.20 sec) mysql> insert into `backtickSymbol` values(2); Query OK, 1 row affected (0.17 sec) mysql> insert into `backtickSymbol` values(3); Query OK, 1 row affected (0.09 sec) mysql> insert into `backtickSymbol` values(4); Query OK, 1 row affected (0.16 sec)
To display all records.
mysql> select *from `backtickSymbol`;
The following is the output that displays all the records.
+-------+ | uniId | +-------+ | 1 | | 2 | | 3 | | 4 | +-------+
- What kind of SQL statements can be used to prepare statements?
- Using SQL statements in ABAP Programming and Database performance
- Implementation of common error-trapping logic for all SQL statements in program
- How to echo print statements while executing an SQL script?
- Executing SQL Statements from a Text File on MySQL Client
- How to process SQL statements with JDBC explain with an example?
- MySQL replication: temporarily prevent specific SQL statements replicating to the slaves?
- SQL query describing usage of SUM aggregate function and GROUP-BY with HAVING
- What is the SQL query describing usage of MAX aggregate function and GROUP-BY with HAVING?
- Types of Constraints in SQL
- Usage of Asterisks in Python
- Usage of CSS visibility:visible;
- Usage of CSS visibility:hidden;
- Usage of Bootstrap thumbnail
- Why are Prepared Statements in JDBC faster than Statements? Explain?