가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

MySQL 면접 질문과 답변

Test your skills through the online practice test: MySQL Quiz Online Practice Test

Ques 81. How To Escape Special Characters in SQL statements?

There are a number of special characters that needs to be escaped (protected), if you want to include them in a character string. Here are some basic character escaping rules:

► The escape character () needs to be escaped as ().
► The single quote (') needs to be escaped as (') or ('') in single-quote quoted strings.
► The double quote (") needs to be escaped as (") or ("") in double-quote quoted strings.
► The wild card character for a single character (_) needs to be escaped as (_).
► The wild card character for multiple characters (%) needs to be escaped as (%).
► The tab character needs to be escaped as (t).
► The new line character needs to be escaped as (n).
► The carriage return character needs to be escaped as (r).

Here are some examples of how to include special characters:

SELECT 'It''s Sunday!' FROM DUAL;
It's Sunday!

SELECT 'Allo, C'est moi.' FROM DUAL; Allo, C'est moi.

SELECT 'MontTuetWedtThutFri' FROM DUAL;
Mon Tue Wed Thu Fri

도움이 되었나요? Add Comment View Comments
 

Ques 82. How To See the CREATE TABLE Statement of an Existing Table?

SHOW CREATE TABLE test;

도움이 되었나요? Add Comment View Comments
 

Ques 83. How To Concatenate Two Character Strings?

If you want concatenate multiple character strings into one, you need to use the CONCAT() function. Here are some good examples:
SELECT CONCAT('Welcome',' to') FROM DUAL;
Welcome to

SELECT CONCAT('wb','center','.com') FROM DUAL;
WithoutBook.com

도움이 되었나요? Add Comment View Comments
 

Ques 84. How To Create a New Table by Selecting Rows from Another Table in MySQL?

Let's say you have a table with many data rows, now you want to create a backup copy of this table of all rows or a subset of them, you can use the "CREATE TABLE ... SELECT" statement. The tutorial script below gives you a good example:

mysql> INSERT INTO tip VALUES (1, 'Learn MySQL',
'Visit www.GlobalGuideLine.com','2006-07-01');
Query OK, 1 row affected (0.62 sec)

mysql> CREATE TABLE tipBackup SELECT * FROM tip;
Query OK, 1 row affected (0.49 sec)
Records: 1 Duplicates: 0 Warnings: 0

도움이 되었나요? Add Comment View Comments
 

Ques 85. How To Include Numeric Values in SQL statements?

If you want to include a numeric value in your SQL statement, you can enter it directly as shown in the following examples:

SELECT 255 FROM DUAL; -- An integer
255

SELECT -6.34 FROM DUAL; -- A regular number
-6.34

SELECT -32032.6809e+10 FROM DUAL; -- A floating-point value
-3.20326809e+014

도움이 되었나요? Add Comment View Comments
 

Most helpful rated by users:

Copyright © 2026, WithoutBook.