|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 6:59 AM
Points: 2,415,
Visits: 3,372
|
|
| Comments posted to this topic are about the item DDL or DML
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Friday, March 15, 2013 2:43 PM
Points: 3,924,
Visits: 1,554
|
|
Simple basic question.
http://en.wikipedia.org/wiki/Data_Manipulation_Language
SQL DBA.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Sunday, May 12, 2013 5:45 PM
Points: 35,
Visits: 56
|
|
Of the two answers provided DML is the choice, however: http://www.sqlservercentral.com/blogs/michael_coles/archive/2008/03/08/why-select-queries-are-not-dml.aspx there are other opinions.
|
|
|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: Today @ 5:38 AM
Points: 648,
Visits: 685
|
|
It was such a simple question I psyched myself out and assumed it must be a trick. I figured if the answer was DML, the question was too basic to bother asking... so maybe it's considered DDL because it's how you define a return set. I guess they're right: always go with your first answer!
----- a haiku...
NULL is not zero NULL is not an empty string NULL is the unknown
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Yesterday @ 1:36 PM
Points: 887,
Visits: 2,062
|
|
SanjayAttray (9/14/2009) Simple basic question.
http://en.wikipedia.org/wiki/Data_Manipulation_Language
And that article says (bolds are mine):
The purely read-only SELECT query statement is classed with the 'SQL-data' statements and so is considered by the standard to be outside of DML. The SELECT ... INTO form is considered to be DML because it manipulates (i.e. modifies) data. In common practice though, this distinction is not made and SELECT is widely considered to be part of DML.
So, which is it?

|
|
|
|