Interviewer And Interviewee Guide

MySQL Programming Interview Question:

How To Include Comments in SQL Statements?

Submitted by: Administrator
If you want to include comments in a SQL statement, you can first enter "--", then enter your comment until the end of the line. The tutorial exercise below shows you some good examples:

SELECT 'Hello world!' FROM DUAL; -- My first SQL statement!

INSERT INTO links VALUES ('GlobalGuideLine.com'); -- Top rated!

CREATE TABLE faq (
id INTEGER, -- primary key
title VARCHAR(80) -- FAQ title
);
Submitted by: Administrator

Read Online MySQL Programming Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.