Skip to content

Commit 50a30de

Browse files
committed
Add section about SQL naming
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
1 parent 824ac4d commit 50a30de

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed
76 KB
Loading

src/content/docs/workshop/db2i/index.mdx

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,23 @@ As discovered in the last section, it is possible to run statements in an SQL do
207207

208208
### Tasks
209209

210-
#### 1. Executing statements
210+
#### 1. SQL Naming Mode
211+
212+
The naming mode used for your SQL is a configuration option that you should strictly control. The Naming can be set by editing a job in the SQL Job Manager, under the Format tab.
213+
214+
<CardGrid>
215+
<Card>
216+
217+
* **System naming** - The '/' character is used to separate the library or schema name from the table or view name. Using system naming allows the user to leverage the library list (*LIBL) as the mechanism to resolve unqualified object names. System naming is unique to Db2 for i.
218+
* **SQL naming** - The '.' character is used to separate the library or schema name from the table or view name. SQL naming is based upon the SQL standard.
219+
220+
</Card><Card>
221+
222+
![](./assets/execute_1.png)
223+
224+
</Card></CardGrid>
225+
226+
#### 2. Executing statements
211227

212228
<CardGrid>
213229
<Card>
@@ -222,7 +238,7 @@ Clicking the ▶️ (play) button will show a drop down, and the first entry in
222238

223239
</Card></CardGrid>
224240

225-
#### 2. Cancelling a statement
241+
#### 3. Cancelling a statement
226242

227243
<CardGrid>
228244
<Card>
@@ -243,7 +259,7 @@ where 1=1
243259

244260
</Card></CardGrid>
245261

246-
#### 3. Using statement history
262+
#### 4. Using statement history
247263

248264
<CardGrid>
249265
<Card>
@@ -256,7 +272,7 @@ Every time you execute a statement, the statement will be prepended to the state
256272

257273
</Card></CardGrid>
258274

259-
#### 4. Managing commitment control
275+
#### 5. Managing commitment control
260276

261277
VS Code has a simple UI to show if your job has changes pending to commit in your job. In the screenshot, an update statement has been executed, and the result view shows that 1 row was updated. When your job has commitment control setup, the hotbar item will highlight when there are pending changes in your job. Hovering on the hotbar item with your current job will show new Commit and Rollback buttons.
262278

0 commit comments

Comments
 (0)