first lecture Flashcards
the four basic operations you can perform on a database
CRUD
When working with databases in Visual Basic,
CRUD operations are typically carried out using…
SQL statements embedded in your Visual Basic code
Purpose - To add new records to the database.
Create (Insert)
SQL Statement - INSERT INTO
Purpose - To retrieve records from the database.
Read (Select)
SQL Statement - SELECT
Purpose - To modify existing records in the database.
Update
SQL Statement - UPDATE
Purpose - To remove records from the database.
Delete
SQL Statement - DELETE
The ___ is used to execute a block of code if a specified condition is true.
If the condition is false, another block of code can be executed using the Else statement
If-Else statement
The ___ is used when you need to evaluate an expression against multiple possible values. It provides a cleaner and more readable alternative to multiple
Select Case statement
___ when there are many conditions to check.
If-ElseIf statements
The ___ is used when you know in advance how many times you want to execute a block of code. It iterates over a sequence of values.
For loop
The ___ executes a block of code as long as a specified condition is True. It’s useful when the number of iterations is not known in advance.
While loop
The ___ is similar to the While loop, but with a key difference: the condition is evaluated after the loop’s body is executed. This means that the loop will always execute at least once.
Do-While loop