-
-
Without "distinct" recorset is opened without problems.
Private Sub Command1_Click()
Dim Cnn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim CadOracle As String
Dim CadSql As String
CadOracle = "DSN=Oracle;UID=RECAUDA;PWD=xxxx;DBQ=orcl"
Cnn.Open CadOracle
CadSql = "select distinct NOMBRE_MUNI_SUJ from paddgc53"
rs.Open CadSql, Cnn, adOpenKeyset, adLockOptimistic, adCmdText
While Not rs.EOF
rs.MoveNext
Wend
Cnn.Close
End Sub
thanks.">Hello, I have problem with this RecordSet. Do not open with "select distinct". Why?Without "distinct" recorset is opened without problems.Private Sub Command1_Click()Dim Cnn As New ADODB.ConnectionDim rs As New ADODB.RecordsetDim CadOracle As StringDim CadSql As StringCadOracle = "DSN=Oracle;UID=RECAUDA;PWD=xxxx;DBQ=orcl"Cnn.Open CadOracleCadSql = "select distinct NOMBRE_MUNI_SUJ from paddgc53"rs.Open CadSql, Cnn, adOpenKeyset, adLockOptimistic, adCmdTextWhile Not rs.EOF rs.MoveNextWendCnn.CloseEnd Subthanks.
-
What is the use of truncate command?
Truncate command will delete all records and the most important thing to make note of truncate command is since truncate command cannot be rolled back one must make sure to take proper backup of table data before performing the truncate command. Truncate command is thus used to remove all rows from either a table or a cluster. If one wants to use the truncate command in a cluster they can use it only...
-
What are triggers in database? ">
What are triggers in database?
The programmer may like the database o take some action when a database event occurs. In order to achieve the above purpose triggers are defined. The trigger body refers to the code written within the trigger which gets fired and executed when the related database event associated with the trigger occurs. On this situation one may have the question what is the event on the happening of which triggers...
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Oracle Basics Interview Questions
Ans