|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sql design view comments?
I've always thought about this and never been able to find out how to do it? Now I REALLY need to comment some stuff because of the length.
How do you comment out text in SQL DESIGN VIEW? |
|
#2
|
|||
|
|||
|
You can't add comments to SQL code. You can however run a script that builds a SQL statement and you can comment the code.
for instance Code:
Dim sSQL as string 'This SQL string selects only mickey mouse from the charcter list sSQL = "SELECT * FROM Table_Disney WHERE (([CharacterID] = 1) Then you can do whatever you like with the resulting SQL statement. I usually only do this when I'm modifying or adding/deleting records though.
__________________
---------------- If we've helped you and you have solved your problem please post that it's been resolved so we know! The suspense kills me! |
|
#3
|
|||
|
|||
|
Quote:
I know you can comment like that in the vba ide. I take it what you are saying is that the sql interpreter that buddies up with the query wizard/saved queries is there for sql code and only sql code? No extra functions at all. |
|
#4
|
|||
|
|||
|
Correct
|
|
#5
|
||||
|
||||
|
It may help you to understand this if you realize that the Access Query Design (QBE) is just an interface to create SQL language, which is the common query language used by essentially all relational databases. Switching to "SQL View" merely gives you direct access to the SQL which is usually generated by the QBE. SQL has no provision for comments, it's like the DOS or Linux command line. Indeed, you can use SQL at the command line with many databases, such as MySQL.
__________________
Experience is the thing you have left when everything else is gone. |
|
#6
|
|||
|
|||
|
Thanks for the replies. I have a better grasp of it now.
|
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > Sql design view comments? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|