CIW PERL FUNDAMENTALS 1D0-437 Question # 13 Topic 2 Discussion

CIW PERL FUNDAMENTALS 1D0-437 Question # 13 Topic 2 Discussion

1D0-437 Exam Topic 2 Question 13 Discussion:
Question #: 13
Topic #: 2

Which of the following correctly creates a SQL statement that will insert the values of the $name and $age variables into a database? The statement is assigned to the $sqlStmt variable. Assume a CHAR data type for $name and an INT data type for $age.


A.

$sqlStmt = q{INSERT INTO aTable (NAME, AGE) VALUES ($name, $age)};


B.

$sqlStmt = q{INSERT INTO aTable (NAME, AGE) VALUES ($name\, $age)};


C.

$sqlStmt = qq{INSERT INTO aTable (NAME, AGE) VALUES ($name, $age)};


D.

$sqlStmt = qq{INSERT INTO aTable (NAME, AGE) VALUES (\$name\, $age)};


Get Premium 1D0-437 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.