abdullah's picture
Add files using upload-large-folder tool
8f7bb8d verified
raw
history blame
56 kB
1
00:00:20,200 --> 00:00:23,760
ุจุณู… ุงู„ู„ู‡ ุงู„ุฑุญู…ู† ุงู„ุฑุญูŠู… ุงู„ูŠูˆู… ุงู† ุดุงุก ุงู„ู„ู‡ ุจู†ูƒู…ู„ ููŠ
2
00:00:23,760 --> 00:00:31,620
chapter 6 ุงู„ู„ูŠ ู‡ูˆ ุจุชูƒู„ู… ุนู† ุงู„ BLSQL ุงุดุฑุญู†ุง ุงู„ู…ุฑุฉ
3
00:00:31,620 --> 00:00:34,880
ุงู„ู…ุงุถูŠุฉ ุงู„ procedure ูˆ ุงู„ function ุญูƒูŠู†ุง ุงูŠุด ุงู„ูุฑู‚
4
00:00:34,880 --> 00:00:38,880
ุงู„ุฃุณุงุณูŠ ุจูŠู† ุงู„ function ูˆ ุงู„ procedure ุงู„ function
5
00:00:38,880 --> 00:00:45,380
ููŠู‡ุง ููŠู‡ุง return ุจุชุฑุฌุน ู‚ูŠู…ุฉ ูˆุงุญุฏุฉ ุจุณ ุจูŠู†ู…ุง ุงู„
6
00:00:45,380 --> 00:00:49,850
procedure ู…ุงููŠุด ููŠู‡ return ู„ุฃูŠ ู‚ูŠู…ุฉูˆุญูƒูŠู†ุง ููŠ ุงู„
7
00:00:49,850 --> 00:00:53,070
function ู„ู…ุง ุจุนู…ู„ ุงู„ function ู„ุงุฒู… ุงุนุฑู ู†ูˆุน ุงู„
8
00:00:53,070 --> 00:00:55,370
return ูŠุนู†ูŠ ู„ุงุฒู… ุงุญูƒูŠ ุงู† ุงู„ู„ูŠ ุจุฏูŠ ุงุฑุฌุนู‡ ุงู„ู„ูŠ ุจุฏูŠ
9
00:00:55,370 --> 00:00:59,170
ุงุนู…ู„ู‡ return ุนุจุงุฑุฉ ุนู† date ุงูˆ number ุงูˆ variable
10
00:00:59,170 --> 00:01:01,730
character ุงูˆ ูƒุฐุง ูŠุนู†ูŠ ุจุฏูŠ ุงุญุฏุฏ ู†ูˆุนู‡ ู…ุงุจู†ูุนุด
11
00:01:01,730 --> 00:01:05,370
function ู…ุฑุฉ ุชุฑุฌุน number ูŠุง ุฑูˆุงู† ุงู†ุช ูˆ ู…ุฑูŠู… ูˆ ู…ุฑุฉ
12
00:01:05,370 --> 00:01:10,090
ุชุฑุฌุน date ุงูˆ number ูุจู†ู†ุชุจุน ุงู„ return ุทุจุนุง ุจุชุจุน ุงู„
13
00:01:10,090 --> 00:01:14,230
function ุงู„ุขู† ุนุดุงู† ุงู†ุงูุฐ function ุงู†ุง ูƒุชุจุชู‡ุง ุงูŠุด
14
00:01:14,230 --> 00:01:18,670
ุจุณุชุฎุฏู…ุŸุฃุจุณุท ุฅูŠุด ู…ู…ูƒู† ุฃุณุชุฎุฏู…ู‡ ุนุดุงู† ุฃู†ุงูุฐ function
15
00:01:18,670 --> 00:01:24,810
ู…ูƒุชูˆุจุฉ ูˆุฌุงู‡ุฒุฉ select .. select ูˆุงุณู… ุงู„ function
16
00:01:24,810 --> 00:01:31,570
from ุฏูˆุงู„ ุงุณู… ุงู„ table ุงู„ูˆู‡ู…ูŠ ุงู„ู„ูŠ ู‡ูˆ ุฅูŠุด ุฏูˆุงู„ ู‡ุฐุง
17
00:01:31,570 --> 00:01:35,970
ุงู„ูƒู„ุงู… ุทุจุนุง ููŠ ุงู„ Oracle ูู‚ุท ู…ุฑูˆุญ ุนู„ู‰ ุฅุด ุชุงู†ูŠ ูˆ
18
00:01:35,970 --> 00:01:40,750
ุฃุชุนู„ู…ูˆุง ุฅุด ุชุงู†ูŠุชู…ุงู… select ุงุณู… ุงู„ function from
19
00:01:40,750 --> 00:01:43,970
dwell ุงู„ select ูˆุธูŠูุชู‡ุง ู…ุด ุจุชุฑุฌุนูŠู„ู†ุง ู‚ูŠู… ูู‡ูŠ
20
00:01:43,970 --> 00:01:47,350
ู‡ุชุฑุฌุนู„ูŠ ู‚ูŠู…ุฉ ูˆุงุญุฏุฉ ุงู„ู„ูŠ ุจุชุฑุฌุนู‡ุง ู…ู† ุงู„ function ู…ุด
21
00:01:47,350 --> 00:01:49,450
ุงุญู†ุง ุงุชูู‚ู†ุง ุงู† ุงู„ function ุจุชุฑุฌุน single value
22
00:01:49,450 --> 00:01:54,170
ูู‡ุชุฑุฌุน ุนู†ุฏู‡ single value ู‡ุชุฑุฌุน ู…ู† ุงู„ select ุจูŠู†ู…ุง
23
00:01:54,170 --> 00:01:58,310
ุงู„ procedure ู…ุงุจูŠุฑุฌุนุด ุงุดูŠ ู„ูˆ ุนู…ู„ู†ุง ู„ู‡ select ู…ุงููŠุด
24
00:01:58,310 --> 00:02:01,690
ุงุดูŠ ูŠุฑุฌุนู‡ ู ุงู„ select ู‡ุชุนุทูŠู†ูŠ error ูุฅูŠุด ุจู†ุณุชุฎุฏู…
25
00:02:01,690 --> 00:02:05,850
ุจู†ุณุชุฎุฏู… ุจุฏู„ ุงู„ select execute
26
00:02:07,270 --> 00:02:13,670
ูˆุจู†ุญุท ุงุณู… ู…ูŠู† ุงุณู… ุงู„ procedure ูˆุจุชู… ุชู†ููŠุฐู‡ ุชู…ุงู…ุŸ
27
00:02:15,840 --> 00:02:19,680
ูƒุชุจู†ุง code ุงุญู†ุง ู„ู„ .. ู„ู„ function ูƒุชุจู†ุง code ุงุฎุฏู†ุง
28
00:02:19,680 --> 00:02:24,580
ู…ุซุงู„ ุนู„ูŠู‡ ูู‡ูŠ ุนู†ุฏู‰ execute ูุฏู‡ ู„ุงุฒู… ูŠูƒูˆู† ุงูŠุด ู„ุงุฒู…
29
00:02:24,580 --> 00:02:29,000
ูŠูƒูˆู† procedure award bonus ุฑู‚ู… ู…ูˆุธู 150 ูˆุงุจู†ู†ุง
30
00:02:29,000 --> 00:02:32,320
ู†ุนุทูŠู‡ bonus 400 ู…ุดุฑูˆุญ ุงู„ code ูู‰ ุงู„ slide ุงู„ู„ู‰
31
00:02:32,320 --> 00:02:36,820
ู‚ุจู„ู‡ุง ู‡ู‰ create procedure ู…ุด function ุดุฑุญู†ุงู‡
32
00:02:36,820 --> 00:02:39,920
ูˆุงุฎุฏู†ุงู‡ ุจุงู„ุชูุตูŠู„ ูˆุนู…ู„ู†ุง ุงุญู†ุง two examples ุฎุงุตูŠู†
33
00:02:39,920 --> 00:02:43,420
ููŠู†ุง ุนู…ู„ู†ุงู‡ู… ุนู…ู„ูŠ ุนู„ู‰ ุงู„ oracle ู‚ุฏุงู…ูƒู… ุงู„ู…ุฑุฉ ุงู„ู„ู‰
34
00:02:43,420 --> 00:02:43,820
ูุงุชุช
35
00:02:46,640 --> 00:02:49,220
ู‡ูŠ ููŠ ุนู†ุฏู‰ ูƒู…ุงู† procedure ูƒู…ุงู† example ู†ุงุฎุฏู‡ ู…ุน
36
00:02:49,220 --> 00:02:53,560
ุจุนุถ ุนู„ู‰ ุงู„ procedures ุจุจุฏุฃ ููŠู‡ ุจ create or replace
37
00:02:53,560 --> 00:02:55,840
procedure ุฅุฐุง ุฃู†ุง ุจุฏุฃ ุดุบู„ ุนู„ู‰ procedure ู…ุด ุน
38
00:02:55,840 --> 00:02:59,940
ูุงู†ูƒุดู† ู…ุงููŠุด return ุนู†ุฏูŠ ุณู…ูŠุชู‡ update management
39
00:02:59,940 --> 00:03:05,660
ุจุญุท ููŠู‡ company ID in ูˆ ุงู„ variable ู‡ุฐุง ุฅูŠุด ุจุฏู‡
40
00:03:05,660 --> 00:03:09,740
ูŠูƒูˆู† ุงู„ parameter ู‡ุฐุง ุงู„ argument in ุฅูŠุด ูŠุนู†ูŠ in
41
00:03:11,700 --> 00:03:14,800
ูŠุนู†ูŠ ุจุณ ุจู†ู‚ุฑุฃู‡ ู…ุณู…ูˆุญู†ุง ู†ุนู…ู„ู‡ referencing only for
42
00:03:14,800 --> 00:03:18,660
read ู…ู…ู†ูˆุน ู†ุนู…ู„ ุนู„ูŠู‡ over write ู…ู…ู†ูˆุน ู†ูƒุชุจ ุนู„ูŠู‡
43
00:03:18,660 --> 00:03:24,140
ู…ู…ู†ูˆุน ู†ุนุฏู„ ุนู„ูŠู‡ ู„ูˆ ูƒุงู† out ู…ุณู…ูˆุญ
44
00:03:24,140 --> 00:03:26,380
ู†ูƒุชุจ ุนู„ูŠู‡ ูˆ ู†ุนุฏู„ ุนู„ูŠู‡ ุจุณ ู…ู…ูƒู† ู†ู‚ุฑุฃู‡ ูˆ ู†ุนู…ู„ู‡
45
00:03:26,380 --> 00:03:30,880
referencing ู„ุฃ ุฅุฐุง ุจุฏู†ุง ู†ู‚ุฑุฃู‡ ูˆ ู†ุนุฏู„ ุนู„ูŠู‡ ุฅูŠุด ู„ุงุฒู…
46
00:03:30,880 --> 00:03:36,400
ูŠูƒูˆู† in out number ุงู„ู„ูŠ ู‡ูˆ ู†ูˆุน ุงู„ data type ุชุจุนู‡
47
00:03:36,400 --> 00:03:39,620
number ู…ุด date ู…ุด string ุงู„ู„ูŠ ู‡ูˆ ุงู„ variable
48
00:03:39,620 --> 00:03:44,450
character ุฃูˆ ุงู„ characteras ุฃูˆ ุงูŠุด ู…ู…ูƒู† ุจุฏุฃ ุงู„ as
49
00:03:44,450 --> 00:03:52,130
ู†ูƒุชุจุŸ ู…ูŠู† ูŠุฐูƒุฑู†ูŠุŸ is ูŠุนู†ูŠ ุงู…ุง as ุงูˆ is ุงู„ุขู† ุงูˆู„
50
00:03:52,130 --> 00:03:55,630
ูู‚ุฑุฉ ุจุชุจุฏุฃ ู‡ุฐู‡ ุงู„ูู‚ุฑุงุด ู…ูŠู† ุจุญุท ููŠู‡ุงุŸ declaration
51
00:03:55,630 --> 00:03:59,550
ุชุนุฑูŠูุงุช ุงู„ variables declaration ูู‡ูŠ ููŠ ุนู†ุฏูŠ ูƒุงู…
52
00:03:59,550 --> 00:04:03,630
variables ูˆุงุญุฏ ุงุณู…ู‡ title string title underscore
53
00:04:03,630 --> 00:04:10,050
cr ู†ูˆุนู‡ variable character two ุชู„ุงุชูŠู† ุญุฑู ุจุฏูŠ ุงุจุฏุง
54
00:04:10,050 --> 00:04:13,460
ุงู„ code ุชุจุนูŠ ู‡ุงูŠ ุงู„ beginูˆู‡ูŠ ู†ู‡ุงูŠุฉ ุงู„ code ุงู„ end
55
00:04:13,460 --> 00:04:20,160
ู‡ุนู…ู„ select ู„ column ุงูŠุด ุงุณู…ู‡ title ู…ู† ุงูŠ ุฌุฏูˆู„
56
00:04:20,160 --> 00:04:25,240
employees ูˆ ุจุฏุฃ ุฎุงุฒู†ู‡ ูˆูŠู† ุงู†ุชูˆุง ุชุจู‚ูˆุง ุนู„ู‰ ุงู„ุชุฑุชูŠุจ
57
00:04:25,240 --> 00:04:28,340
ูŠุนู†ูŠ ุงู†ุง ุงู„ quiz ุงู„ู„ูŠ ุตู„ุญุชู„ูƒู… ุฅูŠุงู‡ุง ุณู‡ู„ุช ููŠ
58
00:04:28,340 --> 00:04:31,920
ุงู„ุชุตู„ูŠุญ ููŠ ูƒุชูŠุฑ ู†ุงุณ ู„ู„ูŠูˆู… ู„ู„ูŠูˆู… ุฌู…ู„ุฉ ุงู„ select
59
00:04:31,920 --> 00:04:36,320
ุงู„ุนุงุฏูŠุฉ ูˆ ุงู„ insert ุงู„ุนุงุฏูŠุฉ ู„ู„ูŠูˆู… ุฌู…ู„ุฉ ุงู„ select ูˆ
60
00:04:36,320 --> 00:04:39,800
ุงู„ insert ุงู„ุนุงุฏูŠุฉ ู…ุด ุญุงูุธูŠู† ุงู„ุชุฑุชูŠุจูƒูˆู† insert
61
00:04:39,800 --> 00:04:46,940
values then into ุฃูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ
62
00:04:46,940 --> 00:04:51,020
ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ
63
00:04:51,020 --> 00:04:55,220
ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„
64
00:04:55,220 --> 00:04:55,240
ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ
65
00:04:55,240 --> 00:04:55,460
ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„
66
00:04:55,460 --> 00:04:56,140
ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ
67
00:04:56,140 --> 00:04:56,520
ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„
68
00:04:56,520 --> 00:05:01,900
ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ
69
00:05:01,900 --> 00:05:06,540
ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„ ุงู†ุชูˆุง ุงูˆ ู†ุงุณู„
70
00:05:06,540 --> 00:05:15,160
ุงู†ุชูˆุง ุงูˆ ู†Begin, select title ุงุณู… ุงู„ูƒู„ู…, into ููŠ
71
00:05:15,160 --> 00:05:17,700
ุงู„ variable ุงู„ู„ูŠ ุจุชุฎุฒู† ููŠู‡ ู‚ูŠู…ุฉ ุงู„ูƒู„ู… from ุงุณู…
72
00:05:17,700 --> 00:05:22,900
ุงู„ุฌุฏูˆู„ ุจู…ุง ุฃู†ูŠ ุจุฏูŠ ุฃุฎุฒู† value ููŠ variableุŒ ุงู„
73
00:05:22,900 --> 00:05:27,420
variable ู‡ุฐุง ูƒู… value ุจุชุญู…ู„ ุฃุฎุฒู† ููŠู‡ุŸvariable ูˆุงุญุฏ
74
00:05:27,420 --> 00:05:31,500
ุชุญู…ู‰ ุงู„ู‚ูŠู…ุฉ ูˆุงุญุฏุฉ ู„ูˆ ุนู…ู„ุช ุฃู†ุง ุงู„ select ุจุฏูˆู† where
75
00:05:31,500 --> 00:05:35,560
ูŠุนู†ูŠ ู‡ุฑุฌุน ูƒู„ ู‚ูŠู… ุงู„ูƒูˆู„ูˆู… ููŠ ุงู„ุฌุฏูˆู„ ูƒู„ู‡ ู‡ุฑุฌุน ู…ุซู„ุง
76
00:05:35,560 --> 00:05:38,740
ู…ุฆุฉ ู‚ูŠู…ุฉ ุฃู„ู ู‚ูŠู…ุฉ ุฃู„ููŠู† ู‚ูŠู…ุฉ ู…ุงุจุชุฎุฒู†ูˆุด ููŠ ุงู„
77
00:05:38,740 --> 00:05:41,560
variable ู„ุงุฒู… ุงู„ select ุงู„ู„ูŠ ุจุชุนู…ู„ ููŠู‡ุง select
78
00:05:41,560 --> 00:05:45,440
into ุชุฑุฌุน ู‚ูŠู…ุฉ ูˆุงุญุฏุฉ ุนุดุงู† ุชุฑุฌุน ู‚ูŠู…ุฉ ูˆุงุญุฏุฉ ุจุฏูŠ
79
00:05:45,440 --> 00:05:48,540
whereูˆ ุงู„ wear ู‡ุฐู‡ ุงู†ุง ุงูƒูˆู† ู…ุชุฃูƒุฏ ุงู†ูŠ ุจุนู…ู„
80
00:05:48,540 --> 00:05:51,580
condition ู…ุงุจุฑุฌุนุด ุงู„ุง ุณุทุฑ ูˆุงุญุฏ ุบุงู„ุจุง ู‡ุฐุง ุงู„
81
00:05:51,580 --> 00:05:55,060
condition ู…ูŠู† ู‡ูˆ ุบุงู„ุจุง ุงู„ primary key ุจุณ ู‡ุฐุง ู„ุง
82
00:05:55,060 --> 00:05:57,580
ูŠู…ู†ุน ุงู† ุงู†ุง ุงุณุชุฎุฏู… candidate key ุชุงู†ูŠ ุบูŠุฑ ุงู„
83
00:05:57,580 --> 00:06:01,440
primary key ุงูˆ ูŠูƒูˆู† ุนู†ุฏูŠ condition ุทูˆูŠู„ ูŠุนู†ูŠ ุงู†ู‡
84
00:06:01,440 --> 00:06:04,800
ุงู„ color red and ูŠูƒูˆู† ู…ุด ุนุงุฑู ุงูŠุด ูƒู…ุงู† green ูˆ
85
00:06:04,800 --> 00:06:08,870
ูŠูƒูˆู† ุงู„ ูƒุฐุงูŠูƒูˆู† ุงูŠุด condition ุทูˆูŠู„ ุจุญูŠุซ ุงู† ุงุถู…ู†
86
00:06:08,870 --> 00:06:12,030
ุงู†ู‡ one value ุงู„ู„ูŠ ุจุชุชุฎุฒู† ููŠ ุงู„ variable ุงู„ู„ูŠ ุนู†ุฏูŠ
87
00:06:12,030 --> 00:06:15,110
ู„ุงู† ู‡ูŠู† ุงุณุชุฎุฏู…ุช ุงู„ company id ุฃุฎุฏุช ุงู„ company id
88
00:06:15,110 --> 00:06:19,030
in ุงู„ู„ูŠ ู‡ูˆ ู…ู† ูˆูŠู† ุฃุฎุฏู†ุงู‡ ู…ู† ุงู„ parameter ุชุจุน ุงู„
89
00:06:19,030 --> 00:06:23,590
procedure ูˆู‡ุฐุง ูŠูุชุฑุถ ุงู†ู‡ primary key ุงู†ู‡ ุฑุฌุนู„ูŠ
90
00:06:23,590 --> 00:06:27,230
ู‚ูŠู…ุฉ ูˆุงุญุฏุฉ ููŠ ุงู„ title string ู„ุงู† ุงุด ุงู†ุง ุนุงู…ู„ ููŠ
91
00:06:27,230 --> 00:06:30,670
ุงู„ code ุนู†ุฏูŠ ุนุงู…ู„ if statement ุจุฏูŠ ุงูุญุต if ูˆ else
92
00:06:30,670 --> 00:06:36,670
if ูˆู‡ูŠ end ุงู„ if ู†ู‡ุงูŠุฉ ุงู„ ifุจุฏูŠ ุฃูุญุต ุฅุฐุง ุงู„ title
93
00:06:36,670 --> 00:06:42,730
string president ุซู… ุฃุนู…ู„ ู„ูŠ update ู„table employee
94
00:06:42,730 --> 00:06:48,790
ุชุบูŠุฑ ุงู„ salary ุชุตูŠุฑ ุจุชุณุงูˆูŠ ูƒุงู… ุงู„ salary ุถุฑุจ ู†ุต
95
00:06:48,790 --> 00:06:52,830
where ุงู„ company ID ุจูŠุณุงูˆูŠ ุงู„ company ID in ู†ูุณ
96
00:06:52,830 --> 00:06:56,570
ุงู„ุดุฑุท ุงู„ู„ูŠ ูƒุงู† ููŠ ุงู„ select ุบูŠุฑู†ุง ุงู„ุฑุงุชุจ ุชุจุน ุงู„
97
00:06:56,570 --> 00:07:00,870
president ุชุจุน ุงู„ุดุฑูƒุฉ ุฅุฐุง ุงู„ title else if ุงู„ title
98
00:07:00,870 --> 00:07:04,810
vice president ุจุฏูŠ ุฃุถุฑุจ ุงู„ salary ู…ุซู„ุง ููŠ ุฑุจุน
99
00:07:07,850 --> 00:07:10,690
ูˆ ู†ูุณ ุงู„ุดูŠุก ู‡ุงูŠ ุงู„ where statement ุนุดุงู† ุงุญุฏุฏ ุงู†ู‡
100
00:07:10,690 --> 00:07:13,710
ุจุณ ู„ุณุทุฑ ูˆุงุญุฏ ุจุนู…ู„ู‡ update and if ุฃู†ู‡ูŠู†ุง ุงู„ if
101
00:07:13,710 --> 00:07:18,150
ุญุทูŠู†ุง exception ุงูŠุด ูุฏุช ุงู„ exceptionุŸ ู„ูˆ ุตุงุฑ ุงูŠ
102
00:07:18,150 --> 00:07:22,070
error ุฃุจุณุท error ู…ู…ูƒู† ูŠุตูŠุฑ ุนู†ุฏูŠ ุงูŠุด ู‡ูˆุŸ ุงู† ุงู„
103
00:07:22,070 --> 00:07:24,750
select ู‡ุงูŠ ู…ุงุชุฑุฌุนุด ุงูŠ ุดูŠ ุฃูƒูˆู† ุงู†ุง ู…ุงุนุทูŠู‡ุง ู…ุซู„ุง ุงู„
104
00:07:24,750 --> 00:07:27,130
select where ุงู„ company ID ุจูŠุณูˆูŠ company ID in
105
00:07:27,130 --> 00:07:29,570
ูŠูƒูˆู† ุงู„ company ID in ู‡ุฐุง ุงู„ู„ูŠ ุงู†ุง ุญุทุชู‡ ู…ุด ู…ูˆุฌูˆุฏ
106
00:07:29,570 --> 00:07:33,510
ููŠ ุงู„ table ุจู…ุง ุงู†ู‡ ู…ุด ู…ูˆุฌูˆุฏ ู‡ุชุฑุฌุญ ู‡ุงูŠ ูˆู„ุง ุงูŠ ุดูŠ
107
00:07:33,510 --> 00:07:37,110
ุตูุฑู‡ูŠูƒูˆู† ู‡ุฐุง ูุงุถูŠ ูู„ู…ุง ู‚ุงุนุฏ ุฃูุญุต ุนู„ู‰ ุงู„ F
108
00:07:37,110 --> 00:07:41,650
statement ู…ุงููŠุด ููŠู‡ุง ุฃุดูŠ ุฃูุญุตู‡ุง ุฃุตู„ุง ู‡ุชุนู…ู„ู„ูŠ ู…ุดุงูƒู„
109
00:07:41,650 --> 00:07:45,670
ู…ุจุงุดุฑุฉ ุจุฑูˆุญ ูˆูŠุงู†ูŠ ุนู„ู‰ ุงู„ exception ูุงู„ exception
110
00:07:45,670 --> 00:07:51,720
ูˆูŠู†ุŸ ุฅูŠุด ุงู„ exception ุงู„ู„ูŠ ุนู†ุฏูŠุŸ ุฅูŠุด ุงุณู…ู‡ุŸno data
111
00:07:51,720 --> 00:07:55,020
found ุงุณู…ู‡ ู‡ู†ุฃุชูŠ ู†ุงุฎุฏ ุจุนุถ ุฃู†ูˆุงุน ุงู„ exceptions ุงู„ู„ูŠ
112
00:07:55,020 --> 00:07:57,760
ู…ูˆุฌูˆุฏุฉ ุฃุตู„ุง ููŠ ุงู„ุฃูˆุฑุงู‚ ุงู„ู„ูŠ ู‡ู†ุงุฎุฏ ุฃุฑุจุน ุฃูˆ ุฎู…ุณ
113
00:07:57,760 --> 00:08:00,280
ุฃู†ูˆุงุน ู…ู† ุถู…ู†ู‡ุง ุงู„ no data found ู‡ุฐุง ุงู„ no data
114
00:08:00,280 --> 00:08:04,440
found ุจุชุทู„ุน ู…ู† ุงู„ select ุงู„ู„ูŠ ู…ุงุจุชุฑุฌุนุด ุฅุดูŠ ุงู„ูุงุถูŠุฉ
115
00:08:04,440 --> 00:08:07,980
ุงู„ู„ูŠ ู…ุงููŠุด ููŠู‡ุง ุฅุดูŠ ูู„ูˆ ุฃุญู†ุง ุนู…ู„ู†ุง select ูƒุงู†ุช
116
00:08:07,980 --> 00:08:11,900
ูุงุถูŠุฉ ู‡ูŠุทู„ุน ุนู†ุฏูŠ ู‡ุฐุง ุงู„ exception ุฅูŠุด ุจู†ุฑูˆุญ ู†ุนู…ู„
117
00:08:11,900 --> 00:08:14,820
ู†ู‚ู„ ูŠุนู†ูŠ ุจุณ ุจุฏู†ุง ู†ุณูƒุชู‡ ุฃู† ุฃุญู†ุง ุฃู‡ ุนุฑูู†ุง ุฃู†ู‡ ููŠ
118
00:08:14,820 --> 00:08:17,740
exception ูˆ ุจุฏู†ุงุด ู†ุนู…ู„ ุฅุดูŠ ุจุฏู„ ู…ุง ุงู„ุฃูˆุฑุงู‚ ูŠุตูŠุฑ
119
00:08:17,740 --> 00:08:23,220
ุชุทุจุนู„ู†ุง errors ู…ู† ุนู†ุฏู‡ุงู‡ูŠ ุงู†ุง ุจุญูƒูŠุŒ ูŠุง ุงู†ุชูˆุง
120
00:08:23,220 --> 00:08:27,480
ุจุชุญูƒูˆุงุŒ ุงุญู†ุง ุงู„ุงุชู†ูŠู† ู†ุญูƒูŠ ู…ุน ุจุนุถ ู…ุด ูƒุชูŠุฑ ูŠุนู†ูŠ ุฒุงุฏ
121
00:08:27,480 --> 00:08:31,000
ุทู…ุนุงู†ุŒ ุฒูŠ ุงู„ู„ูŠ ูˆุฑุงูƒ ูŠุง ุฑูˆุญุงู†ูŠุŒ ุณุทุฑ ุงู„ู„ูŠ ูˆุฑุง ูˆ ุงู„ู„ูŠ
122
00:08:31,000 --> 00:08:35,220
ุจุนุฏู‡ exception
123
00:08:36,200 --> 00:08:40,600
when ุนู†ุฏูŠ ุงู„ู€ no data found then null ู…ุงุชุนู…ู„ุด ุฅุดูŠ
124
00:08:40,600 --> 00:08:42,620
ุฎู„ุงุต ุจุณ ูŠุนุฑูู†ุง ุฅู†ู‡ ููŠ exception ู…ุงุจุฏู†ุงุด ุชุทู„ุน
125
00:08:42,620 --> 00:08:46,200
errors ุน ุงู„ุดุงุดุฉ ูˆ ุฎู„ุงุต ุฃูˆ ู…ู…ูƒู† ุฃุฑูˆุญ ุฃู†ุง ุฃุทุจุน ุนู„ู‰
126
00:08:46,200 --> 00:08:50,280
ุงู„ user ุฃุนู…ู„ู‡ print ุฃุฎุฏู†ุง ุงู„ DBMS output bot line
127
00:08:50,280 --> 00:08:53,340
ุงู„ู„ูŠ ู‡ูŠ ุฒูŠ function ู„ print ููŠ ุงู„ python ุนู†ุฏูƒู… ูˆ
128
00:08:53,340 --> 00:08:56,460
ู†ุฑูˆุญ ู†ุทุจุน ุณุทุฑ ู†ูƒุชุจู„ู‡ ุฅู†ู‡ ุงู„ data ู‡ุฐู‡ ููŠู‡ุง ู…ุดูƒู„ุฉ
129
00:08:56,460 --> 00:09:01,100
ุฃู†ุช ู…ุฏุฎู„ ุงู„ุฑู‚ู… ุบู„ุท ุฑุงุฌุน ุงู„ุฑู‚ู… ุชุงู†ูŠ ูˆ ู‡ูƒุฐุง and
130
00:09:01,100 --> 00:09:04,040
ุงู†ุชู‡ู‰ ุงู„ code procedure ุจุณูŠุทุฉ
131
00:09:07,790 --> 00:09:11,690
ู‡ูŠ ูƒู…ุงู† procedure ุชุงู†ูŠ ูƒู…ุงู† example example 3
132
00:09:11,690 --> 00:09:23,310
create
133
00:09:23,310 --> 00:09:28,930
or replace procedure ุฅูŠุด ุงุณู…ู‡ student mark student
134
00:09:28,930 --> 00:09:33,100
mark ุงุฎุชุตุฑู†ุงู‡ู†ุญุจ ุงู„ุงุฎุชุตุงุฑุงุช ููŠ ุงู„ุจุฑู…ุฌุฉ ุนุดุงู† ุงูŠู‡ุŸ
135
00:09:33,100 --> 00:09:37,300
ุนุดุงู† ู†ุฑูŠุญ ุฑุงุณู†ุง ู…ู† ูƒุชุฑ ูƒุชุงุจุฉ ุงู„ code student mark
136
00:09:37,300 --> 00:09:42,520
ููŠ ุนู†ุฏูŠ two parameters ู„ุฅู† ู‡ุฏูˆู„ ู…ุด variables ูุชุญู†ุง
137
00:09:42,520 --> 00:09:47,560
ุงุญู†ุง ุงูŠุด ูˆ sin ู„ู„ parameters ููŠ ุนู†ุฏูŠ ุงู„ student ID
138
00:09:47,560 --> 00:09:51,740
ูˆููŠ ุนู†ุฏูŠ ุงู„ course ุงู„ู„ูŠ ู‡ูˆ ุงู„ course ุฑู‚ู… ู„ู„ course
139
00:09:51,740 --> 00:09:57,920
in ุงู„ุงุชู†ูŠู† in ุงู„ุงุชู†ูŠู† ุจุฏูŠ ุงู‚ุฑุงู‡ู… ุจุณ ู‚ุฑุงุกุฉู†ูˆุน ุงู„
140
00:09:57,920 --> 00:10:00,660
data type ุจุชุงุนุชู‡ู… ู…ุบู„ุจุชุด ุญุงู„ูŠ ุงู† ุงูƒุชุจ data type
141
00:10:00,660 --> 00:10:03,460
number ุงูˆ date ุงูˆ variable character ุฑูˆุญู†ุง ุฎุฏู†ุง
142
00:10:03,460 --> 00:10:06,060
data type ุฌุงู‡ุฒ ู…ู† ู…ูŠู† ู…ู† ุงู„ column ุงู„ู„ูŠ ุจุฏู†ุง
143
00:10:06,060 --> 00:10:09,460
ู†ุชุนุงู…ู„ ู…ุนุงู‡ ุจุฏู†ุง ู†ุชุนุงู…ู„ ู…ุน table ุงุณู…ู‡ studies
144
00:10:09,460 --> 00:10:14,460
column ุงุณู…ู‡ ุงู„ course code ูˆ column ุงุณู…ู‡ ุงู„ number
145
00:10:14,460 --> 00:10:18,600
ู„ู„ student ุจุฏูŠ ุงุฎุฏ ุงู„ type ุจุชุงุนุชู‡ู… ุงุชู†ูŠู† ุงุนู…ู„ ุงู„
146
00:10:18,600 --> 00:10:21,540
two types ู„ู„ two variables ุจู…ุง ุงู†ูŠ ุจุฏูŠ ุงุชุนุงู…ู„ ู…ุน
147
00:10:21,540 --> 00:10:24,800
ู‡ุฏูˆู„ ุงู„ columns ุงุฐุง ุงู†ุง ุงูƒูŠุฏ ุงู†ุง ู‡ุนู…ู„ select ู…ู† ุงู„
148
00:10:24,800 --> 00:10:28,780
two columns ู‡ุฏูˆู„ ูˆุงุฎุฒู† ูˆูŠู†ููŠ ุงู„ู€ two variables ู‡ุงูŠ
149
00:10:28,780 --> 00:10:35,220
ุงู„ .. ุงู„ .. ุงู„ begin ุนู…ู„ุช select mark into mark
150
00:10:35,220 --> 00:10:37,340
ู‡ุฐุง ุทุจ ู‡ุฐุง ู„ูŠุด ู…ุด ู…ุนุฑูุŸ ู„ุฃ ู‡ูŠ ู…ุนุฑู ููŠ ุงู„
151
00:10:37,340 --> 00:10:42,340
declaration ููŠ ุนู†ุฏูŠ ูƒู…ุงู† variable ู‡ุฏูˆู„ two
152
00:10:42,340 --> 00:10:45,060
parameters ู‡ุงูŠ ููŠ ุนู†ุฏูŠ variable ููŠ ุงู„ declaration
153
00:10:45,060 --> 00:10:49,980
ููŠ ุงู„ as ุฃูˆ ุงู„ is ููŠ ุนู†ุฏูŠ mark ุนุจุงุฑุฉ ุนู† ุงู„ student
154
00:10:49,980 --> 00:10:53,700
ุงู„ studies dot mark ุงู„ type ุชุจุนู‡ุง ูุงู†ุง ู‡ุนู…ู„ select
155
00:10:53,700 --> 00:11:00,760
ู„ู„ markูˆุฎุฒูŠู†ู‡ุง ููŠ ู…ูŠู†ุŸ ููŠ ุงู„ู…ุงุฑุณ from ู†ูุณ ุงู„ table
156
00:11:00,760 --> 00:11:04,560
ุงู„ู„ูŠ ู‡ูˆ ุงู„ studies where ุฑู‚ู… ุงู„ student ู‡ูˆ ุงู„ุฑู‚ู…
157
00:11:04,560 --> 00:11:10,360
ุงู„ู„ูŠ ู…ูŠู† ุงู„ู„ูŠ ุงุญู†ุง ุฌูŠุจู†ุงู‡ ููŠ ุงู„ parameter and ุงู„
158
00:11:10,360 --> 00:11:13,760
course ุฑู‚ู… ุงู„ course ุทุจ ู„ูŠุด ุงุณุชุฎุฏู…ุช ุงู†ุง ุฑู‚ู…ูŠู† ููŠ
159
00:11:13,760 --> 00:11:16,860
ู‡ุฐุง ุงู„ุฌุฏูˆู„ุŸ ู‡ุฐุง ุฌุฏูˆู„ ุฒูŠ ุฌุฏูˆู„ ุงู„ enrolled ุงู„ู„ูŠ
160
00:11:16,860 --> 00:11:19,620
ุฃุฎุฏู†ุงู‡ ุงู„ registration ุงู„ primary key ุชุจู‚ู‰ ุนุจุงุฑุฉ
161
00:11:19,620 --> 00:11:23,820
ู…ุด ุนู† ูƒู„ู… ูˆุงุญุฏcombined ุฑู‚ู… ุงู„ course ู…ุน ุฑู‚ู… ุงู„ุทุงู„ุจ
162
00:11:23,820 --> 00:11:29,360
ูุงู†ุง ุงุฐุง ุจุฏูŠ ุงู„ select ู‡ุฐู‡ ุชุฑุฌุนู„ูŠ one value ู„ุงุฒู…
163
00:11:29,360 --> 00:11:33,040
ุงุฎุชุงุฑ ุงู„ู„ูŠ ู‡ู… ุงูŠู‡ ุฑู‚ู… ุงู„ุทุงู„ุจ ูˆ ุฑู‚ู… ุงู„ course ู…ุน
164
00:11:33,040 --> 00:11:36,480
ุจุนุถ ุงู„ primary key ูƒุงู…ู„ two columns ูุงุญู†ุง ุญุฏุฏู†ุง ุงู„
165
00:11:36,480 --> 00:11:39,960
two columns ู‡ูŠ ุงู„ where ููŠู‡ุง and ุงู„ู†ุชูŠุฌุฉ ุงู„ู„ูŠ
166
00:11:39,960 --> 00:11:42,220
ู‡ุชุทู„ุน ู„ูŠู‡ุง ุนู„ุงู…ุฉ ุงู„ุทุงู„ุจ ููŠ ุงู„ู…ุณุงู‚ุฑ ุงู„ู„ูŠ ู‡ูˆ ู…ุณุฌุฏู‡
167
00:11:42,220 --> 00:11:47,780
ู‡ุชุชุฎุฒู† ููŠ ุงู„ู…ุงุฑ ู‡ุฐู‡ ู„ุงู† ุจุฏูŠ ุงุทุจุน ุงู†ุง ุนู„ู‰ ุงู„ุดุงุดุฉ
168
00:11:47,780 --> 00:11:53,020
ุนู„ุงู…ุฉ ุงู„ุทุงู„ุจ ุงุนู…ู„ู†ุง output ู„ู…ูŠู†ุงู„ุนู„ุงู…ุชู‡ ุงู„ุทุงู„ุจ ูˆ
169
00:11:53,020 --> 00:11:55,500
ุงู†ุช ุจุณ ู‡ูŠูƒู„ ุงู„ procedure ุงู„ู„ูŠ ุจูŠุนู…ู„ู‡ ุงู„ procedure
170
00:11:55,500 --> 00:11:59,220
ุจุณ ุงู†ุง ุจุนุทูŠู‡ ุฑู‚ู… ุทุงู„ุจ ูˆ ุงู„ู…ุซุงู‚ ุงู„ู„ูŠ ู‡ู… ุณุฌู„ู‡ ุจุทุจุน
171
00:11:59,220 --> 00:12:04,180
ู„ูŠู‡ ุงูŠุด ุจู‚ู‰ ุงู„ู„ูŠ ุนู„ุงู…ุชู‡ ุจุณ ุนู„ุงู…ุชู‡ ุนูุฑุถ ุงู†ู‡ ูŠู„ูˆ
172
00:12:04,180 --> 00:12:07,000
ุนู„ุงู…ุฉ ู„ูˆ ู…ุงู„ูˆุด ุนู„ุงู…ุฉ ู‡ุตูŠุฑ exception ุนุงู…ู„ูŠู† ุงุญู†ุง
173
00:12:07,000 --> 00:12:10,850
handling ู„ exceptionู‡ุฐู‡ ู…ุดูƒู„ุฉ ููŠ ุงู„ procedure ู‡ุฐุง
174
00:12:10,850 --> 00:12:14,330
ุจุฏู†ุง exception ุนู„ู‰ ุงู„ุฃู‚ู„ ุนู„ู‰ ุงู„ุฃู‚ู„ ูˆ ู„ูˆ ุณุทุฑ ูˆุงุญุฏ
175
00:12:14,330 --> 00:12:18,190
ููŠ ุงู„ exception ู†ุนุทูŠ print ุฃู†ู‡ ุฑู‚ู… ุงู„ุทุงู„ุจ ุฃูˆ
176
00:12:18,190 --> 00:12:21,750
ุงู„ู…ุณุงู‚ ู…ุซู„ุง ู…ุงููŠุด ููŠู‡ ุนู„ุงู…ุฉ ุฃูˆ ุงู„ุทุงู„ุจ ู‡ุฐุง ู…ุด ู…ูˆุฌูˆุฏ
177
00:12:21,750 --> 00:12:25,110
ูˆ ุฅุฐุง ุฑู‚ู… ุงู„ุทุงู„ุจ ุบู„ุท ุฃูˆ ุฑู‚ู… ุงู„ู…ุณุงู‚ ุบู„ุท ุจุฑุถู‡ ู…ุด
178
00:12:25,110 --> 00:12:29,150
ู‡ูŠุนุทูŠู†ูŠ ุฃูŠ ุดูŠุก ูู„ุงุฒู… ูŠูƒูˆู† ููŠ ุนู†ุง ูŠุนูŠุด ู‡ูŠ ูุงุฏุฉ ุงู„
179
00:12:29,150 --> 00:12:31,390
exceptions ูŠูƒูˆู† ููŠ ุนู†ุฏูŠ exception ุจุชุนุงู…ู„ ู…ุนุงู‡
180
00:12:34,700 --> 00:12:41,700
ุงู„ู…ุซุงู„ ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง
181
00:12:41,700 --> 00:12:46,460
ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง
182
00:12:46,460 --> 00:12:52,440
ู…ุซู„ู‹ุง
183
00:12:52,440 --> 00:12:55,760
ู…ุซู„ู‹ุง
184
00:12:55,760 --> 00:12:58,960
ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง
185
00:12:58,960 --> 00:13:00,780
ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง ู…ุซู„ู‹ุง ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู†
186
00:13:00,780 --> 00:13:00,800
ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู†
187
00:13:00,800 --> 00:13:00,800
ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู†
188
00:13:00,800 --> 00:13:00,820
ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู†
189
00:13:00,820 --> 00:13:00,820
ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู†
190
00:13:00,820 --> 00:13:05,820
ู…ุซู„ู† ู…ุซู„ู† ู…ุซู„ู† ู…ุซูˆุงู„ุงู† ุจูŠุตูŠุฑ ุนู†ุฏูŠ function name
191
00:13:05,820 --> 00:13:08,100
ุจุฏู„ ุงู„ procedure name ูˆ ุงู„ parameter less ุฒูŠ ู…ุง ู‡ูŠ
192
00:13:08,100 --> 00:13:11,880
ู†ูุณ ุงู„ููƒุฑุฉ ุงู„ in ูˆ ุงู„ out ูˆ ุงู„ in out ู„ูƒู† ุจุนุฏ
193
00:13:11,880 --> 00:13:14,700
ุงู„ูƒู„ุงู… ู‡ุฐุง ูƒู†ุง ููŠ ุงู„ procedure ู…ุจุงุดุฑุฉ ู†ูƒุชุจ is ุงูˆ
194
00:13:14,700 --> 00:13:19,800
as ุงู„ุงู† ู‚ุจู„ ุงู„ is ุงูˆ ุงู„ as ุจุฏูŠ ุงุญุท ุงู„ return ู…ุน ุงู„
195
00:13:19,800 --> 00:13:25,200
data type ุงู† ู‡ุฐู‡ function ุจุฏูŠ ุชุฑุฌุน number function
196
00:13:25,200 --> 00:13:28,440
ุจุฏูŠ ุชุฑุฌุน date function ุจุฏูŠ ุชุฑุฌุน variable character
197
00:13:28,440 --> 00:13:32,100
ุทูˆู„ู‡ ู…ุซู„ุง 100 ุญุฑู ุจุฏูŠ ุงุญุฏุฏ ุงูŠุด ุจุงู„ุถุจุท ุงู„ู„ูŠ ุจุฏูŠ
198
00:13:32,100 --> 00:13:37,280
ุงุฑุฌุนู‡ุจุนุฏ ู…ู† ุญุฏุฏ ุงู„ุทูŠุจ ุชุจุนุชู‡ ู†ูุณ ุงู„ุฃุฌุฒุงุก ุฒูŠ ุงู„
199
00:13:37,280 --> 00:13:41,720
procedure declarations begin ู…ุน end ููŠ statements
200
00:13:41,720 --> 00:13:44,680
ููŠ exception ุจุณ ุจุฏู†ุง ู†ู„ุงุญุธ ุฃู† ุงู„ statements ู„ุงุฒู…
201
00:13:44,680 --> 00:13:50,360
ุขุฎุฑ ุงู„ statement ุชูƒูˆู† return ูˆ ุงู„ value ุงู„ู„ูŠ ุจุฏู‡
202
00:13:50,360 --> 00:13:54,520
ุฑุฌุนู‡ุง ูŠุนู†ูŠ
203
00:13:54,520 --> 00:13:56,500
ูุนู„ุง ุงู†ุช ุจุชุทู„ุน ุงู„ code ุชุจุน ุงู„ function ูˆ ุชุจุน ุงู„
204
00:13:56,500 --> 00:14:02,480
procedure ุงู„ูุฑู‚ ุงู„ุณุทุฑ ู‡ุฐุง ูˆ ู‡ุฐุง ุงู„ุณุทุฑ ูˆ ูƒู„ู…ุฉ
205
00:14:02,480 --> 00:14:08,210
function ุจุฏู„ุจุฏุง ุงู„ procedure ู„ู…ุง ุฃุฌูŠ ุฃู†ูุฐู‡ุง ู…ุด
206
00:14:08,210 --> 00:14:11,850
ู‡ูŠู†ูุน ุฃุฑูˆุญ ุฃุนู…ู„ู‡ุง execute ูุจุฏุฃ ุฃุนู…ู„ execute ุฒูŠ ู…ุง
207
00:14:11,850 --> 00:14:14,650
ุจุนู…ู„ ููŠ ุงู„ procedure ููŠ ุนู†ุฏู‰ return value ูˆู…ุง
208
00:14:14,650 --> 00:14:18,070
ุจุชุฑุฌุน ู…ุงู„ู‡ุงุด ู…ูƒุงู† ุชุฑุฌุน ุนู„ูŠู‡ ูุจุฏุฃ ุฃุณุชุฎุฏู… ุงู„ู„ูŠ ู‡ูŠ ุงู„
209
00:14:18,070 --> 00:14:22,490
select ุงุณู… ุงู„ function from dual ุนุดุงู† ุชุฑุฌุน ุงู„ู‚ูŠู…ุฉ
210
00:14:22,490 --> 00:14:25,410
ูˆูŠู† ุนู„ู‰ ุงู„ select ุงู„ู„ูŠ ุฏูŠ ุทุจุนุง function ุจุฏุฃ ุชู†ุงุฏูŠ
211
00:14:25,410 --> 00:14:30,930
function ุชุณุชุฏุนูŠู‡ุง ูˆุชุงุฎุฏ ู‚ูŠู…ุฉ ู…ู†ู‡ุง ูŠุนู†ูŠ ู‡ุงูŠ ุนู†ุฏู†ุง
212
00:14:30,930 --> 00:14:38,520
example ุนู„ู‰ functionูƒุงุชุจูŠู†ู‡ุง ูˆ ู…ุฌู‡ุฒูŠู†ู‡ุง ุจุฏูŠ
213
00:14:38,520 --> 00:14:41,620
ุงุนู…ู„ create or replace ู„ function ุงุณู…ู‡ุง increment
214
00:14:41,620 --> 00:14:50,060
in range in CR in range ููŠ ุนู†ุฏูŠ ship date in ุจุฏูŠ
215
00:14:50,060 --> 00:14:57,280
ุงู‚ุฑุงู‡ ุชุงุฑูŠุฎ ู„ shipment ููŠ ุนู†ุฏูŠ date ุงู„ู„ูŠ ู‡ูˆ ุงู„
216
00:14:57,280 --> 00:15:01,390
variable type ุชุจุนู‡ุงุงู„ู€ variable ุชุจุงุนู‡ุง ู†ูˆุนู‡ date
217
00:15:01,390 --> 00:15:06,530
ู…ุด number ู…ุด character ูู‰ ุนู†ุฏูŠ ุงู„ S date ุจุฑุถู‡ N
218
00:15:06,530 --> 00:15:11,590
ุจุฏู‡ ุฃู‚ุฑุง ูˆ ุจุฑุถู‡ ุนุจุงุฑุฉ ุนู† date ูู‰ E date ุจุฑุถู‡ N ูˆ
219
00:15:11,590 --> 00:15:14,750
ุจุฑุถู‡ ุชุงุฑูŠุฎ ูŠุนู†ูŠ ุจุฏู‡ ุฃุนุทูŠู†ุง ุงู„ function ู‡ุงูŠ three
220
00:15:14,750 --> 00:15:21,350
dates return ุฅูŠุด ุฏู‡ ุชุฑุฌุน integer ุจุฏู‡ ุชุนุทูŠู†ูŠ ุฑู‚ู…
221
00:15:21,350 --> 00:15:25,790
integer as begin ุจุฏู‡ ุฃูุญุต ุฅุฐุง ุงู„ ship date between
222
00:15:25,790 --> 00:15:33,680
ุงู„ S date ูˆ ุงู„ E dateุฑุฌุนู„ูŠ ูˆุงุญุฏ true ูŠุนู†ูŠ ุฅุฐุง ู„ุฃ
223
00:15:33,680 --> 00:15:40,020
ู…ุด ุจูŠู†ู‡ู… ุฑุฌุนู„ูŠ zero ุฅุฐุง
224
00:15:40,020 --> 00:15:44,400
ุดุจ ู…ู† date ุจูŠู† ุงู„ start ูˆ ุงู„ end start date is
225
00:15:44,400 --> 00:15:49,400
date end date ุชุงุฑูŠุฎ ุงู„ู†ู‡ุงูŠุฉ ุฅุฐุง ุจูŠู†ู‡ู… ุฑุฌุนู„ูŠ true
226
00:15:49,400 --> 00:15:53,220
ุฅุฐุง ู…ุด ุจูŠู† ุงู„ุชุงุฑูŠุฎูŠู† ุฑุฌุนู„ูŠ false ููŠ ุนู†ุฏูŠ ู…ุดูƒู„ุฉ
227
00:15:53,220 --> 00:15:57,670
ูŠุนู†ูŠ ููŠ ุงู„ dates ุงู„ู„ูŠ ุนู†ุฏูŠ end if endู‡ุฐู‡ ูƒู„ ุงู„
228
00:15:57,670 --> 00:16:00,590
functions ุงู„ู„ูŠ ุจุชุนู…ู„ู‡ุง ุจุณ ุจุฃุนุทูŠู‡ุง ุชู„ุช ุชูˆุฑูŠุฎ ุชูุญุตู„
229
00:16:00,590 --> 00:16:06,410
ุฃูˆู„ุง ุจูŠู† ุงู„ุฃุชู†ูŠู† ุชุงู†ูŠู† ูˆู„ุง ู…ุด ุจูŠู†ู‡ู… ู…ู…ูƒู†
230
00:16:06,410 --> 00:16:10,130
functions ุฒูŠ ู‡ุฐู‡ ู…ุน ุชุนุฏูŠู„ ุจุณูŠุท ู„ุฒู…ูƒู… ููŠ ูˆูŠู† ููŠ
231
00:16:10,130 --> 00:16:14,670
ุงู„ู…ุดุฑูˆุน ุชุจุน ุงู„ูู†ุฏู‚ ู…ุด ููŠ ุนู†ุฏูƒู… ุชูˆุฑูŠุฎ ุญุฌุฒุงุช ุจุฏู†ุง
232
00:16:14,670 --> 00:16:19,630
ู†ูุญุต ู…ุซู„ุง ุชุงุฑูŠุฎ ู…ุนูŠู† ุถู…ู† ุนุทู„ุฉ ุถู…ู† ุชุงุฑูŠุฎ ุญุฌุฒุงุช ุฅุดูŠ
233
00:16:19,630 --> 00:16:22,790
ุจุฏูŠ ุฃุญุฌุฒ ุบุฑูุฉ ู…ู† range ู„ range ุญุงุฌุฉ ู„ุฒู…ูƒู… ุชูƒุชุจูˆุง
234
00:16:22,790 --> 00:16:31,030
functionsุจุดูƒู„ ุดุจูŠู‡ ููŠ ู‡ุฐุง ุงู„ cursor ู„ุญุฏ
235
00:16:31,030 --> 00:16:34,090
ุงู„ุขู† ูƒู„ ุงู„ functions ูˆ ุงู„ procedures ุงู„ู„ูŠ ูƒุชุจู†ุงู‡ู…
236
00:16:34,090 --> 00:16:38,470
ูƒู†ุง ู†ุนู…ู„ select ุฅุฐุง ุฃู†ุชูˆุง ู…ู„ุงุญุธูŠู† ูƒู†ุง ู†ุนู…ู„ select
237
00:16:38,470 --> 00:16:43,530
into ูˆ ู†ุฎุฒู† ููŠ variable ูˆ ุจู…ุง ุฃู†ู‡ ุจู†ุฎุฒู† ููŠ
238
00:16:43,530 --> 00:16:46,070
variable ูŠุนู†ูŠ ู„ุงุฒู… ูŠุฑุฌุนู„ูŠ ู‚ูŠู…ุฉ ูˆุงุญุฏุฉ select into
239
00:16:46,070 --> 00:16:50,750
ุชุฑุฌุนู„ูŠ ู‚ูŠู…ุฉ ูˆุงุญุฏุฉ ุทุจ ู„ูˆ ุฃู†ุง ุจุฏุฃ ุฃุนู…ู„ function ุชุนู…ู„
240
00:16:50,750 --> 00:16:55,930
ุนู„ุงู…ุงุช bonus ู„ูƒู„ ุงู„ุทู„ุงุจ ุนู†ุฏู‰ู…ุด ุทุงู„ุจ ูˆุงุญุฏ ุจุฏูŠ ุงุนู…ู„
241
00:16:55,930 --> 00:16:59,730
function ุชุชุนุงู…ู„ ู…ุน ุทุงู„ุจ ูˆุงุญุฏ ุงุนุทูŠู‡ุง ุฑู‚ู… ุงู„ุทุงู„ุจ
242
00:16:59,730 --> 00:17:02,690
ูˆุงุณูŠุฑ ุง settle ุงู„ function ุงูƒุชุฑ ู…ู† ู…ุฑุฉ ูƒู„ ู…ุฑุฉ ุงุญุท
243
00:17:02,690 --> 00:17:05,570
ุฑู‚ู… ุงู„ุทุงู„ุจ ูˆ ุงุนุทูŠู‡ bonus ุฑู‚ู… ุงู„ุทุงู„ุจ ูˆ ุงุนุทูŠู‡ bonus
244
00:17:05,570 --> 00:17:09,010
ู‡ูŠ ุทุฑูŠู‚ุฉ ููŠ ุทุฑูŠู‚ุฉ ุงุญุณู† ุงู† ุงู†ุง ุงุนู…ู„ function
245
00:17:09,010 --> 00:17:13,050
ู…ุงุนุทูŠู‡ุงุด ุฑู‚ู… ุงู„ุทุงู„ุจ ุงุนุทูŠู‡ุง ู…ุซู„ุง ู…ุฌู…ูˆุน ุทู„ุงุจ ุงูˆ
246
00:17:13,050 --> 00:17:16,270
ุงุนุทูŠู‡ุง table ุทู„ุงุจ ูˆ ุชุฑูˆุญูŠู‡ ู„ุญุงู„ู‡ุง ุชุนู…ู„ loop ู…ุด
247
00:17:16,270 --> 00:17:19,730
ุฎุฏู†ุง for loop ูˆ while loop ูˆ ุชู„ู ุนู„ูŠู‡ู… ูˆุงุญุฏ ูˆุงุญุฏ ูˆ
248
00:17:19,730 --> 00:17:23,710
ุชุบูŠุฑ ููŠ ุนู„ุงู…ุงุชู‡ู… ู…ุซู„ุง ุชุนุทูŠ ุงู„ูƒู„ bonusุชุญุณุจ ู„ูƒู„
249
00:17:23,710 --> 00:17:28,190
bonus ู„ุฃู† ุนุดุงู† ุงู„ุนู…ู„ูŠุฉ ู‡ูŠ ุงุชู… ุงู„ select ุนู†ุฏู‰ ุงู„ู„ู‰
250
00:17:28,190 --> 00:17:34,710
ุจุฏู‰ ุงุฑุฌุน ููŠู‡ุง ู„ู„ู‚ูŠู… ุจุฏู‰ ุชุฑุฌุน ุงูƒุชุฑ ู…ู† row ุงูƒุชุฑ ู…ู†
251
00:17:34,710 --> 00:17:41,370
one row ุทุจ ู…ุดูƒู„ุฉ ู…ุด ุญุงุถุฑุฉ ุงุฎุฒู†ู‡ู… ููŠ variable ุจุฏู†ุง
252
00:17:41,370 --> 00:17:45,590
ุญู„ ุงู„ุญู„ ุงู„ู„ู‰ ุทู„ุนูˆุง ููŠู‡ ููŠ BLSQL ุงูŠุด ุงุณู…ู‡ ุงู„ cursor
253
00:17:45,590 --> 00:17:48,530
ุงู„ cursor ู‡ุชุจุฏูŠุงูƒู… ุชููƒุฑูˆุง ููŠู‡ ุนู„ู‰ ุงู†ู‡ ุนุจุงุฑุฉ ุนู†
254
00:17:48,530 --> 00:17:54,140
variable ุงุชุฎุฒู† ููŠู‡ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ rowsุฒูŠ ูƒุฃู†ู‡ array
255
00:17:54,140 --> 00:17:58,780
ุจุฎุฒู† ููŠู‡ ุฃูƒุชุฑ ู…ู† ุณุทุฑ ู…ู† ุงู„ database ุฒูŠ ูƒุฃู†ู‡ view
256
00:17:58,780 --> 00:18:01,860
ุจุฎุฒู†
257
00:18:01,860 --> 00:18:06,480
ููŠู‡ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ุฃุณุทุฑ ูˆููŠ ู…ุฌุงู„ ุจุนุฏ ู…ุง ู†ุฎุฒู† ููŠู‡ ุฃุณุทุฑ
258
00:18:06,480 --> 00:18:10,900
ุจุนุฏ ู…ุง ู†ุฎุฒู† ููŠู‡ ููŠ ู…ุฌุงู„ ู†ู„ู ุนู„ูŠู‡ู… ุณุทุฑ ุณุทุฑ ุจุงู„ุชุฑุชูŠุจ
259
00:18:10,900 --> 00:18:14,580
ุจุงู„ุฏูˆุฑ ูˆู†ุฑูˆุญ ู†ุนู…ู„ update ุนู„ูŠู‡ู… ุจุงู„ุฏูˆุฑ
260
00:18:18,460 --> 00:18:21,940
ูƒูŠู ู†ุชุนุฑู ุงู„ูƒูŠุฑุณุฑ ููŠ ูุชุฑุฉ .. ููŠ ู…ู†ุทู‚ุฉ ุงู„ declare
261
00:18:21,940 --> 00:18:24,860
ุจุชุงุนุฉ ุงู„ variables ู†ุชุนุงู…ู„ ู…ุน ุงู„ูƒูŠุฑุณุฑ ุนู†ู‡ variable
262
00:18:24,860 --> 00:18:28,240
ููŠ ุงู„ declare ู…ู…ูƒู† ู†ุนุฑู ูƒูŠุฑุณุฑ ูˆ ู„ุงุญุธูˆุง ุงู„ูƒูŠุฑุณุฑ
263
00:18:28,240 --> 00:18:33,000
ุชุนุฑูŠูู‡ ุนุจุงุฑุฉ ุนู† ุฅูŠุดุŸ
264
00:18:33,000 --> 00:18:41,700
ุนุจุงุฑุฉ ุนู† select ุชุนุฑูŠูู‡ ุนุจุงุฑุฉ ุนู† select ู†ูุชุญ
265
00:18:41,700 --> 00:18:45,480
ุนุฒุงู‡ ูˆู„ุง ู„ุณู‡ุŸ ุทูŠุจ ู†ุชุจู‡ูˆุง ู…ุนุงูƒ
266
00:18:49,460 --> 00:18:56,500
declare cursor ุนู†ุฏูŠ ุงุณู… ู„ู„ cursor cursor ูŠุนู†ูŠ ุงู†
267
00:18:56,500 --> 00:19:00,900
ุงู†ุง ุงู„ู„ูŠ ุจุฏูŠ ุงุนู…ู„ู‡ cursor ู‡ุฐุง ุงุณู… ู„ู‡ ูƒูŠู ู†ุนุทูŠ ุงุณู…
268
00:19:00,900 --> 00:19:05,680
ู„ู„ variable is ุนุจุงุฑุฉ ุนู† ุฌู…ู„ุฉ select ุงู„ cursor ู‡ุฐุง
269
00:19:05,680 --> 00:19:08,480
ุงู„ู„ูŠ ุนู†ุฏูŠ select star from employees ุงูŠุด ู‡ุฎุฒู† ููŠู‡
270
00:19:08,480 --> 00:19:12,720
ูƒู„ ู…ุนู„ูˆู…ุงุช ุงู„ employees ูƒู„ ุงู„ุฌุฏูˆู„ ุงู„ star ูŠุนู†ูŠ ูƒู„
271
00:19:12,720 --> 00:19:16,480
ุงู„ columns from employees ุจุฏูˆู† where ุจุฏูˆู† ุดุฑุท ูŠุนู†ูŠ
272
00:19:16,480 --> 00:19:20,970
ุงู†ุง ุจุฏูŠ ุงูŠุงู‡ู… ูƒู„ ุงูŠุงุชู‡ู…ุฅุฐุง ุจุฏู‰ ุฃุฑุชุจู‡ู… ุจุนู…ู„ select
273
00:19:20,970 --> 00:19:24,970
star from employees order by ..ุดุฎุฏู†ุง ุงู„ order by ูˆ
274
00:19:24,970 --> 00:19:27,790
ุจู†ุญุท ุชุฑุชูŠุจ ุฅุฐุง ุจุฏู‰ ุฃุฑุชุจ ุญุณุจ ุงู„ุฑู‚ู… ุฃูˆ ุญุณุจ ุงู„ุฅุณู…
275
00:19:27,790 --> 00:19:32,910
order by name ุฃูˆ order by ID numberุฅุฐุง ุฃู†ุง ุจุฏูŠ ุจุณ
276
00:19:32,910 --> 00:19:35,370
ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ employees ุจุณ ุจุฏูŠ ุงู„ู†ุงุณ ุงู„ู„ูŠ ุจุชุดุชุบู„
277
00:19:35,370 --> 00:19:40,810
ุจุงู„ุณุงุนุฉ where ุงู„ job type ู…ุซู„ุง equals ู…ุซู„ุง H ู…ุซู„ุง
278
00:19:40,810 --> 00:19:44,230
H ุชุฑู…ุฒ ุงู„ hour ู„ู„ู†ุงุณ ุงู„ู„ูŠ ุจุชุดุชุบู„ ุจุงู„ุณุงุนุฉ ุงู„ุทู„ุงุจ
279
00:19:44,230 --> 00:19:46,230
ุงู„ู„ูŠ ุนู†ุฏูŠ ุงู„ู„ูŠ ุจุชุนุทูŠู‡ู… bonus ู„ูŠุด ู‡ุนุทูŠ ุงู„ูƒู„ bonus
280
00:19:46,230 --> 00:19:50,130
ุจุชุนุทูŠ bonus ุจุณ ู„ู„ูŠ ุฌุงูŠุจูŠู† ููˆู‚ ุงู„ 70 ุญุงุฌุฉ ุฃุนู…ู„
281
00:19:50,130 --> 00:19:57,890
select star from students where ุงู„ mark ุฃูƒุจุฑ ู…ู†70
282
00:19:57,890 --> 00:20:02,190
ูุตุงุฑ ุงู„ cursor ุงู„ู„ูŠ ุนู†ุฏูŠ ู…ุฎุฒู† ููŠู‡ ุจูŠุงู†ุงุช ุงู„ุทู„ุงุจ
283
00:20:02,190 --> 00:20:04,990
ู„ุฅุนู„ุงู…ุชู‡ู… ููˆู‚ ุงู„ 70 ูˆ ุจุฑูˆุญ ููŠ ุงู„ code ุชุจุนูŠ ุชุจุน ุงู„
284
00:20:04,990 --> 00:20:09,550
function ุฃูˆ ุงู„ procedure ุจู…ุดูŠ ุนู„ูŠู‡ู… ุจุงู„ุถูˆุก ุฅุฐุง ุฃูˆู„
285
00:20:09,550 --> 00:20:12,950
ู…ุนู„ูˆู…ุฉ ุจุฏู†ุง ู†ุนุฑูู‡ุง ุงู„ cursor ููŠุชู‡ ุฃู†ู‡ ูŠุญู„ู„ูŠ ู…ุดูƒู„ุฉ
286
00:20:12,950 --> 00:20:17,770
ุงู„ one row ุจุชุงุนุฉ select into ูุจุณุชุบู†ูŠ ุนู† ุงู„ select
287
00:20:17,770 --> 00:20:23,010
into ุจู†ุนู…ู„ select ุนุงุฏูŠุฉ ุชุชุฎุฒู† ูƒู„ ู‚ูŠู… ุงู„ select ููŠ
288
00:20:23,010 --> 00:20:27,300
ู…ู†ุŸ ููŠ ู‡ุฐุง ุงู„ cursorู‡ุฐู‡ ุฃูˆู„ ู…ุนู„ูˆู…ุฉุŒ ู…ุนู„ูˆู…ุฉ ุฃู† ูƒูŠู
289
00:20:27,300 --> 00:20:32,120
ุจู†ุนุฑู ุงู„ูƒูŠุฑุณุฑ ูƒูŠุฑุณุฑ ูˆุงุณู…ู‡ is ุฌู…ู„ุฉ select ุฌู…ู„ุฉ ุงู„
290
00:20:32,120 --> 00:20:35,340
select ู‡ูŠ ุฌู…ู„ุฉ select ู…ู…ูƒู† ุชุญุทูˆุง ููŠู‡ุง ุฃูŠ ุฅุด
291
00:20:35,340 --> 00:20:38,260
ุชุนู„ู…ู†ุงู‡ุง ููŠ ุงู„ select ุชุญุทูˆุง ููŠู‡ุง group by ุชุญุทูˆุง
292
00:20:38,260 --> 00:20:41,420
aggregate functions, list of queries, where,
293
00:20:41,760 --> 00:20:46,420
having ุงู„ู„ูŠ ุจุฏูƒู…ูŠู‡ ุชุชุนุงู…ู„ูˆุง ู…ุนุงู‡ ุจุชุฌูŠุจูˆู‡ ู…ู† ุฎู„ุงู„
294
00:20:46,420 --> 00:20:51,360
ุงู„ select ูˆ ุจุชุฎุฒู† ููŠ ุงู„ูƒูŠุฑุณุฑู„ุฃู† ุจุนุฏ ู…ุง ุฎุฒู†ู†ุงู‡ุง ููŠ
295
00:20:51,360 --> 00:20:54,520
ุงู„ cursor ู†ุชุนุงู…ู„ ู…ุน ุงู„ cursor ุจุทุฑูŠู‚ุฉ ุดุจูŠู‡ุฉ ุจุงู„
296
00:20:54,520 --> 00:20:56,560
files ุฃุฎุฏุชูˆุง ูƒูŠู ู†ุชุนุงู…ู„ ู…ุน ุงู„ files ููŠ ุงู„ python
297
00:20:56,560 --> 00:21:02,340
ุนุดุงู† ู†ุชุนุงู…ู„ ู…ุน file ู†ุฑูˆุญ ู†ุนู…ู„ู‡ open ูˆ ุจุนุฏูŠู† ู†ู‚ุฑุฃู‡
298
00:21:02,340 --> 00:21:06,560
ูˆ ู„ู…ุง ู†ุฎู„ุต ุนุดุงู† ู†ุนู…ู„ู‡ close ุตุญ ุนุดุงู† ูƒู†ุช ุชุนู…ู„ู‡ ููŠ
299
00:21:06,560 --> 00:21:11,120
ุงู„ python ุงู„ cursor ู‡ุถู… ู†ุชุฎูŠู„ ุฃู†ู‡ ุฒูŠ ูƒุฃู†ู‡ file ุจุนุฏ
300
00:21:11,120 --> 00:21:14,500
ู…ุง ุจุนุฑูู‡ ูุนู„ูŠุง ู‡ูˆ ู„ุณู‡ ู…ุงุฎุฒู†ุด ุจูŠุงู†ุงุช ุนุดุงู† ุฃุฎุฒู†
301
00:21:14,500 --> 00:21:17,890
ุจูŠุงู†ุงุช ู„ุงุฒู… ุฃุฑูˆุญ ุฃุนู…ู„ู‡ openูˆ ุจุนุฏูŠู† ุจุตูŠุฑ ุฃู‚ุฑุฃ ู…ู†ู‡
302
00:21:17,890 --> 00:21:20,590
ูƒูŠู ูƒู†ุชูˆุง ุชู‚ุฑุฃูˆู‡ ู…ู† ุงู„ file ู…ุด ุณุทุฑ ุณุทุฑ ุจุตูŠุฑ ุฃู‚ุฑุฃ
303
00:21:20,590 --> 00:21:28,030
ู…ู†ู‡ ุณุทุฑ ุณุทุฑ ุจุณ ุฃุฎู„ุต ู…ู†ู‡ ุจุฏูŠ ุฃุนู…ู„ู‡ close ุชู…ุงู…
304
00:21:28,030 --> 00:21:34,950
ุทูŠุจ ูƒูŠู ู†ุนู…ู„ู‡ open ู‡ูŠูˆ ุจุณ ูƒู„ู…ุฉ open ุงุณู… ุงู„ูƒุงุฑุซุฉ
305
00:21:34,950 --> 00:21:41,530
ุตุนุจ ู…ุงู„ูƒู… ู†ุณูŠูŠู† ุงู„ files
306
00:21:46,630 --> 00:21:49,970
ุชุนุฑูŠู ุงู„ cursor ุจุชุงูŠุฉ ุงู„ู„ูŠ ู…ุงูƒุงู†ุด ุตุนุจ ูƒุชุจู†ุง cursor
307
00:21:49,970 --> 00:21:55,070
ูˆ ูƒุชุจู†ุง ู„ู‡ ุงุณู… ูˆ ุฌู…ู„ุฉ select is select ู„ุฃู† ุจุฏูŠ
308
00:21:55,070 --> 00:22:02,210
ุงูุชุญู‡ ูŠ open ุงุณู…ู‡ ุฎู„ุตู†ุง ู…ู†ู‡ ุจุฏู†ุง ู†ุณูƒุฑ close ุงุณู…ู‡
309
00:22:02,210 --> 00:22:06,150
ุฃุซู†ุงุก ุงู„ุชุนุงู…ู„ ู…ุนุงู‡ ูƒูŠู ุจู‚ุฑุฃ ูƒู„ ุณุทุฑ ู…ู† ุฎู„ุงู„ ูƒู„ู…ุฉ
310
00:22:06,150 --> 00:22:11,890
fetch fetch ูŠุนู†ูŠ ุงุนุทูŠู†ูŠ ุงู„ุณุทุฑ ุงู„ู„ูŠ ุจุนุฏู‡ ุงู„ row
311
00:22:11,890 --> 00:22:18,020
ุงู„ู„ูŠ ุจุนุฏู‡ fetch ุงุณู… ุงู„ cursorุฎุฒุงู†ู†ุง ู‚ูŠู…ุฉ ูˆูŠู†ุŸ into
312
00:22:18,020 --> 00:22:23,300
variable into variable ุงู„ู„ูŠ ุจุชุชุนุงู…ู„ ู…ุนุงู‡ ุฅุฐุง ูƒุงู†
313
00:22:23,300 --> 00:22:26,600
ุจูŠุฑุฌุนู„ูŠ ู…ุซู„ุง ุฒูŠ ุงู„ู„ูŠ ูƒู†ุง ุนุงู…ู„ูŠู†ู‡ ุงู„ู„ูŠ ู‡ูˆ select
314
00:22:26,600 --> 00:22:29,760
star from employees ูŠุนู†ูŠ ุฃูƒุชุฑ ู…ู† ูƒู„ู‡ู… ุจุฏูŠ ุฃุนู…ู„
315
00:22:29,760 --> 00:22:34,340
fetch ุงู„ employee cursor into ูˆ ุฃุนู…ู„ ุงู„ู„ูŠ ู‡ูˆ
316
00:22:34,340 --> 00:22:38,840
variable ุงุชู†ูŠู† ุชู„ุงุชุฉ ุฃุฑุจุนุฉ ุฎู…ุณุฉ ุฃูˆ ุจูŠูƒูˆู† ู‡ุฐุง ุงู„
317
00:22:38,840 --> 00:22:41,260
variable ุฅูŠุด ู†ูˆุนู‡ ุฅุฐุง ุจุฏูŠู‡ ุณุทุฑ ูƒุงู…ู„
318
00:22:43,890 --> 00:22:50,450
ู…ุชุฐูƒุฑูŠู†ู‡ ูˆู„ุง ู†ุณูŠู†ุงู‡ุŸ ุฃูˆู„ ู…ุฑุฉ ุชุณู…ุนูˆุง ููŠู‡ุŸ ุทูŠุจ
319
00:22:50,450 --> 00:22:55,130
ุชุนุฑููˆุง ุนู„ูŠู‡ Raw type ุญูƒูŠู†ุง ุงู„ raw type ุจู†ุนุฑูู‡ ุนู„ู‰
320
00:22:55,130 --> 00:23:00,070
ุฌุฏูˆู„ ูุจูŠุนุทูŠู†ูŠ ุณุทุฑ ู„ูƒู„ ุฃุนู…ู„ุช ุงู„ุฌุฏูˆู„ูู…ู…ูƒู† ูŠูƒูˆู† ู‡ุฐุง
321
00:23:00,070 --> 00:23:02,990
ุงู„ variable ุนุจุงุฑุฉ ุนู† raw type ูˆูŠูƒูˆู† ู‡ุฐุง ุงู„ cursor
322
00:23:02,990 --> 00:23:06,790
ู…ุนู…ูˆู„ ุนู„ู‰ ุงู†ู‡ select star ู…ู† ุงู„ุฌุฏูˆู„ ูˆุจุงู„ุชุงู„ูŠ ู‡ุชูŠุฌูŠ
323
00:23:06,790 --> 00:23:09,770
ูƒู„ ุนุงู…ู„ุฉ ุงู„ุฌุฏูˆู„ ุชุชุฎุฒู† ููŠ variable ูˆุงุญุฏุฉ ู„ุฃู† ุงู„
324
00:23:09,770 --> 00:23:13,010
variable ู‡ุฐุง ูุนู„ูŠุง ุฌูˆุง ู…ุซู„ุง ุฎู…ุณุฉ columns ุงูˆ ุณุชุฉ
325
00:23:13,010 --> 00:23:17,410
columns ุงูˆ ุณุจุนุฉ columns ุชู…ุงู…
326
00:23:17,410 --> 00:23:20,810
ุงู†ุง ุฑุงุญ ุงุนุฑู cursor ููŠ ุงู„ declare cursor ูˆุงุณู…ู‡ ูˆ
327
00:23:20,810 --> 00:23:26,430
is ุฌู…ู„ ุงู„ุณู„ูƒูŠ ุจุฏูŠ ุงุนู…ู„ู‡ open ุจุงุณู…ู‡fetch ุจุงุณู…ู‡ into
328
00:23:26,430 --> 00:23:28,790
ููŠ ุงู„ variable ุงู„ู„ูŠ ุจุชุฎุฒู† ููŠู‡ ู‚ูŠู…ุฉ ุงู„ุณุทุฑ ุงู„ู„ูŠ ุฃู†ุง
329
00:23:28,790 --> 00:23:32,310
ูˆุงุตู„ู‡ ุงู„ุขู† ูƒู„ ู…ุง ุจุนู…ู„ fetch ุจุงุฌูŠ ุนู„ู‰ ุงู„ุณุทุฑ ุงู„ู„ูŠ
330
00:23:32,310 --> 00:23:34,930
ุจุนุฏู‡ ูุชุด ุนู„ู‰ ุงู„ุณุทุฑ ุงู„ู„ูŠ ุจุนุฏู‡ ุทุจุนุง ู…ุด ุญุชู‰ ุจุงู„ fetch
331
00:23:34,930 --> 00:23:39,390
ู‡ูŠ ุนุดุฑ ู…ุฑุงุช ุงูˆ ุนุดุฑูŠู† ู…ุฑุงุช ู‡ุญุทู‡ุง ููŠ ูˆูŠู† ุจุงู„ุถุจุท ู‡ุฐู‡
332
00:23:39,390 --> 00:23:42,510
ู‡ุญุทู‡ุง for loop of while loop ูˆ ุงู„ open ุจุชูƒูˆู† ู‚ุจู„
333
00:23:42,510 --> 00:23:47,430
ุงู„ loop ูˆ ุงู„ close ุจุนุฏ ุงู„ loop ู‡ูŠูƒู… ุชุนุฑููˆุง ุชุจุฑู…ุฌ
334
00:23:47,430 --> 00:23:53,250
ุฃุญุณู† ู…ู†ูŠ ุชู…ุงู… ุทูŠุจ ู‡ูŠ close ู„ู„ูƒุฑุณุฉู„ุฃู† ุงู„ูƒูŠุฑุณุฑ ู‡ุฐุง ูˆ
335
00:23:53,250 --> 00:23:56,330
ุงุญู†ุง ุจู†ุชุนุงู…ู„ ู…ุนุงู‡ ูƒูŠู ุจู†ุนุฑู ุฅู†ู‡ ุฑุฌุน ุนุดุฑ ุฃุณุทุฑุŒ
336
00:23:56,330 --> 00:23:59,970
ุนุดุฑูŠู† ุณุทุฑุŒ ุชู„ุงุชูŠู†ุŒ ุฃุฑุจุนูŠู†ุŸ ุงู„ู„ูˆุจ ู‡ุงูŠ ูƒู… ู…ุฑุฉ ุจุฏู‡ุง
337
00:23:59,970 --> 00:24:05,550
ุชู„ูุŸ ู…ุด ุงุญู†ุง ุงู„ู„ูˆุจ ุนุดุงู† ุชู„ู ุจุฏู†ุง condition ู†ูˆู‚ู
338
00:24:05,550 --> 00:24:07,910
ุนู„ูŠู‡ ุงู„ู„ูˆุจ ุฃูˆ ู†ุฎู„ูŠู‡ุง ุชุณุชู…ุฑ ุจู†ุงู†ุง ุนู„ูŠู‡ุŸ ู…ู† ุฃูŠู† ุจุฏู†ุง
339
00:24:07,910 --> 00:24:13,330
ู†ุนุฑู ุงู„ conditionุŸ ู†ุนุฑูู‡ ู…ู† ุงู„ variables ู‡ุฏูˆู„ุฉ
340
00:24:13,330 --> 00:24:16,510
ุงู„ู…ุชุนู„ู‚ูŠู† ุจุงู„ูƒูŠุฑุณุฑ ู‡ุฏูˆู„ุฉ ููŠ variables ููŠ ูƒู„ ูƒูŠุฑุณุฑ
341
00:24:16,510 --> 00:24:21,610
attributes ุจู†ุณู…ูŠู‡ู… ู„ู„ูƒูŠุฑุณุฑ ู…ูˆุฌูˆุฏูŠู† ู…ุน ูƒู„ ูƒูŠุฑุณุฑุจุณ
342
00:24:21,610 --> 00:24:26,640
ุจุญุท ุงุณู… ุงู„ู€ cursor ูˆุนู„ุงู…ุฉ ููŠ ุงู„ู…ูŠุฉ is openุงุณู… ุงู„
343
00:24:26,640 --> 00:24:31,420
cursor ูˆ found ุงูˆ not found ุงูˆ ุงุณู…ู‡ raw count ุงูŠุด
344
00:24:31,420 --> 00:24:34,780
ุจูŠุนุทูˆู†ูŠ ุงู„ is open ุงุฐุง ูƒุงู† ู…ูุชูˆุญ ุงุฐุง ูƒู†ุช ุงู†ุง ุนุงู…ู„ู‡
345
00:24:34,780 --> 00:24:38,900
open ู‡ูŠุนุทูŠู†ูŠ true ูˆ ุงุฐุง ูƒุงู† ู„ุณู‡ ู…ุด ู…ูุชูˆุญ ุงูˆ ุงู†ุง
346
00:24:38,900 --> 00:24:44,020
ูƒู†ุช ู…ุณูƒุฑุงู‡ ูˆ ุนุงู…ู„ู‡ close ู‡ูŠุนุทูŠู†ูŠ whatุŸ false ูˆุงุถุญุฉ
347
00:24:44,020 --> 00:24:49,500
true if cursor currently active open is open found
348
00:24:49,500 --> 00:24:53,080
ู‡ุฐูŠ ุจุนุฏ ุงู„ูุชุด ุจุณุชุฎุฏู…ู‡ุง ู‡ุฐูŠ ุงู„ู„ูŠ ุจุณุชุฎุฏู…ู‡ุง ุฌูˆุง ุงู„ู„ูˆุจ
349
00:24:53,870 --> 00:24:56,670
ู‡ุฐู‡ ุจุณุชุฎุฏู…ู‡ุง ู‚ุจู„ ุงู„ู„ูˆุจ ุนุดุงู† ุฃุชุฃูƒุฏ ู‚ุจู„ ู…ุง ุฃุฏุฎู„ ููŠ
350
00:24:56,670 --> 00:25:01,210
ุงู„ู„ูˆุจ ุฃู†ู‡ ู…ุนู…ูˆู„ ู„ู‡ open ู‡ุฐูˆู„ ูˆุงุญุฏุฉ ู…ู†ู‡ู… ุจุณุชุฎุฏู…ู‡ุง
351
00:25:01,210 --> 00:25:05,310
ุฌูˆุง ุงู„ู„ูˆุจ ุนุดุงู† ุฃู†ู‡ูŠ ุงู„ู„ูˆุจ ุงู„ found ู‡ุฐู‡ ุจุนุฏ ุงู„
352
00:25:05,310 --> 00:25:09,950
fetch ุจุณุชุฎุฏู…ู‡ุง ุฅุฐุง ุนู…ู„ุช fetch ูˆ ุฑุฌุนู„ูŠ ุณุทุฑ ุจูŠุนุทูŠู†ูŠ
353
00:25:09,950 --> 00:25:14,970
true ู‡ุงูŠ true whenever row is successfully fetched
354
00:25:17,430 --> 00:25:20,430
ุฅุฐุง ุนู…ู„ู†ุง fetch ูˆ ูƒุงู†ุช ุงู„ select ู…ุฎู„ุตุฉ ุฎู„ุตุช ู…ุซู„ุง
355
00:25:20,430 --> 00:25:22,990
ูƒุงู† ููŠู‡ุง ุนุดุฑุฉ ูˆ ุฎู„ุตู†ุงู‡ู… ูƒู„ู‡ู… ูˆ ู…ุงุนู…ู„ู†ุง fetch ุนุดุฑ
356
00:25:22,990 --> 00:25:28,470
ู…ุฑุงุช ู‡ุชุฑุฌุนู„ูŠ ู‡ุงูŠ false ู‡ุงูŠ ุนูƒุณู‡ุง ู‡ุงูŠ ุงู„ุนูƒุณ ู‡ูŠ ู„ู…ุง
357
00:25:28,470 --> 00:25:31,870
ุฃุนู…ู„ fetch successfully ุจุชุฑุฌุนู„ูŠ false ูˆ ู„ู…ุง ุฃุนู…ู„
358
00:25:31,870 --> 00:25:35,530
fetch ูˆ ุชุฎู„ุต ุงู„ select ู…ุงููŠุด ููŠู‡ุง ูˆู„ุง row ุจุชุนุทูŠู†ูŠ
359
00:25:35,530 --> 00:25:38,790
true ุงู„ุนูƒุณ ุฒูŠ ุงู„ is null is not null found ูˆ not
360
00:25:38,790 --> 00:25:42,930
found ุจุณ ุฃุฎุฏู… ูˆุงุญุฏุฉ ู…ู†ู‡ู… ูŠุง ู‡ู‰ ูŠุง ู‡ู‰ ุงู„ row count
361
00:25:42,930 --> 00:25:48,440
ุจุชุนุทูŠู†ูŠ ุงู„ูƒูŠุฑุณุฑ ูˆุงุตู„ ู„ุฃูŠ rowุฅุฐุง ู‚ุฑุฃู†ุง ุงู„ุณุทุฑ ุงู„ุฃูˆู„ุŒ
362
00:25:48,440 --> 00:25:51,200
ุงู„ุชุงู†ูŠุŒ ุงู„ุชุงู„ุชุŒ ุงู„ุฑุงุจุนุŒ ุงู„ุฎุงู…ุณุŒ ุงู„ุณุงุฏุณ ูˆ ุฑูˆุญุช
363
00:25:51,200 --> 00:25:54,680
ุจุนุฏูŠู† ุนู…ู„ุช draw count ุชุญูƒูŠู„ูŠ ุฃู†ู‡ ุฃู†ุช ุตุฑุช ู‚ุงุฑุฆ ู„ุญุฏ
364
00:25:54,680 --> 00:25:58,260
ุงู„ุขู† ุณุชุฉ ูƒู…ู„ู†ุง ู„ุนุดุฑุฉ ุจุชุนุทูŠู†ูŠ ุฃู†ุช ุตุฑุช ู‚ุงุฑุฆ ู„ุนู†ุฏ
365
00:25:58,260 --> 00:26:03,400
ุนุดุฑุฉ ูุจุชุนุทูŠู†ูŠ ุฃูƒู… ุณุทุฑ ุงุญู†ุง ุตุฑู†ุง ู‚ุงุฑุฆูŠู† ู…ุด ุฃูƒู… ุณุทุฑ
366
00:26:03,400 --> 00:26:10,720
ู…ูˆุฌูˆุฏ ุฌูˆุง ุงู„ูƒูŠุฑุณุฉ ุจุนุฑูุด ุฃูƒู… ุณุทุฑ ุฌูˆุง ุงู„ูƒูŠุฑุณุฉ ู†ุนุฑูุด
367
00:26:10,720 --> 00:26:17,350
ุฅุฐุง ุจุฏู†ุง ู†ุนุฑู ู„ุงุฒู… ู†ู‚ุฑุงู‡ู… ูƒู„ู‡ู…ูˆ ุจุณ ู†ุฎู„ุต ู†ุฑูˆุญ ู†ูุญุต
368
00:26:17,350 --> 00:26:21,570
ุงู„ raw count ุจูŠุนุทูŠู†ูŠ ุนุฏุฏ ุงู„ุฃุตู„ ุงู†ู‡ ู‡ูŠุนุทูŠู†ูŠ ุฑู‚ู… ุขุฎุฑ
369
00:26:21,570 --> 00:26:26,950
ุณูุฑ ุฃู†ุง ู‚ุฑุฃุชู‡ code
370
00:26:26,950 --> 00:26:33,650
ุตุบูŠุฑ ุนุดุงู† ู†ุณุชูˆุนุจ ุงู„ู„ูŠ ุจูŠุตูŠุฑ ุขู‡
371
00:26:33,650 --> 00:26:40,820
ุฏู‡ code ุตุบูŠุฑ ูƒู„ู‡ shipper ู‡ุงูŠ ุงู„ declareุจุชุนุงู…ู„ ู…ุน
372
00:26:40,820 --> 00:26:43,260
blockุŒ ุงู„ block ู‡ุฐุง ู…ู…ูƒู† ูŠูƒูˆู† ููŠ function ุฃูˆ ููŠ
373
00:26:43,260 --> 00:26:47,040
procedure ุฃูˆ ููŠ ุฃูŠ ู…ูƒุงู† ููŠ ุงู„ุจูŠุฆุฉ ุงู„ SQL ู‡ูŠ ู…ู†ุทู‚ุฉ
374
00:26:47,040 --> 00:26:51,400
ุงู„ declareุŒ ุนุฑูุช cursorุŒ cursor ุฅูŠุด ุณู…ุชู‡ุŸ ุฅูŠุด ุฏู‡
375
00:26:51,400 --> 00:26:55,060
ุฎุฒู† ููŠู‡ุŸ isุŸ selectุŒ ุงู„ e name ูˆุงู„ salaryุŒ ูŠุนู†ูŠ
376
00:26:55,060 --> 00:27:00,160
two columns ุจุณุŒ ู…ู† ุฃูŠ ุฌุฏูˆู„ุŸ employeeุŒ ุญุฏุฏุช ุดุฑุทุŸ
377
00:27:00,160 --> 00:27:03,000
ูŠุนู†ูŠ ู‡ุงุฎุฏ ูƒู„ ุจูŠุงู†ุงุช ุงู„ employees ู…ู† ุฌุฏูˆู„ ุงู„
378
00:27:03,000 --> 00:27:06,220
employeesุŒ ุจุณ ู…ูŠู†ุŸ ุจุณ two columns ุงู„ name ูˆุงู„
379
00:27:06,220 --> 00:27:10,160
salaryุŒ ุงู„ name ูˆุงู„ salaryู„ุงุญู‚ ุฃุฎุฏ address ู„ุงุญู‚
380
00:27:10,160 --> 00:27:13,480
ุฃุฎุฏ ุนู…ุฑ ู„ุงุญู‚ ุฃุฎุฏ ุชุงุฑูŠุฎ ู…ูŠู„ุงุฏ ุจุณ ุญุฏุฏุช ุงู†ู‡ two
381
00:27:13,480 --> 00:27:19,040
columns ุฑูˆุญ ุชุนู…ู„ two variables X ุจูŠุงุฎุฏ ุงู„ type ุชุจุน
382
00:27:19,040 --> 00:27:23,580
ู…ูŠู† ุชุจุน ุงู„ e name ู…ู† ุฌุฏูˆู„ ุงู„ employee ูˆ Y ุจูŠุงุฎุฏ ุงู„
383
00:27:23,580 --> 00:27:28,180
salary ุชุจุน ุฌุฏูˆู„ ุงู„ employees ู…ุนู†ุงุชู‡ ุงู†ุง ู„ู…ุง ุจุฏุนู…ู„
384
00:27:28,180 --> 00:27:34,250
ุงู„ pitch ุจุชุงุนุฉ ุงู„ูƒูŠุฑุณุฑ ู‡ุฐุง ุงู„ ABC ุจุฏุนู…ู„ู‡ุง intoุงู„ู€
385
00:27:34,250 --> 00:27:37,810
two variables ู‡ุฏูˆู„ ู…ุด ูƒู„ ู…ุฑุฉ ุจุฏุฃ ุฃู‚ุฑุฃ ุณุทุฑ ูˆ ุฃุฎุฒู†
386
00:27:37,810 --> 00:27:41,950
ู‚ูŠู…ุฉ ุงู„ุณุทุฑ ุงู„ู„ูŠ ู‡ู… ุงู„ E name ูˆ ุงู„ salary ููŠ ุงู„ X ูˆ
387
00:27:41,950 --> 00:27:46,270
ููŠ ุงู„ Y ุงู„ู„ูŠ ู‡ู… ุนุจุงุฑุฉ ุนู† E name ูˆ salary ู‡ุงูŠ ุงู„
388
00:27:46,270 --> 00:27:49,950
begin ุจุฏูŠ ุฃุจุฏุฃ ุฃุชุนุงู…ู„ ู…ุน ุงู„ cursor ุนุดุงู† ูŠุดุชุบู„ ุงู„
389
00:27:49,950 --> 00:27:52,690
select ุจุชุงุนุฉ ูˆ ุชุดุชุบู„ ุฃูŠุด ู„ุงุฒู… ุฃุนู…ู„ open ุฃูˆู„ ุฃุดูŠ
390
00:27:52,690 --> 00:27:56,210
ู„ุงุฒู… ุฃูุชุญ ู…ุฌุฑุฏ ู…ุง ุฃุนู…ู„ open ุชุชู†ูุฐ ุงู„ select ู‡ุงูŠ
391
00:27:58,520 --> 00:28:01,460
ุงู„ุงู† ุงู„ู€ select ุงุดุชุบู„ุช ูˆุฑุฌุนุชู„ูŠ ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ุจูŠุงู†ุงุช
392
00:28:01,460 --> 00:28:06,800
ููŠ ุงู„ cursor ุงู„ ABC ู‡ุนู…ู„ fetch ู„ู„ ABC into ุงู„ X ูˆ
393
00:28:06,800 --> 00:28:12,380
ุงู„ Y ูŠุนู†ูŠ ู‡ุงุชู„ูŠ ุฃูˆู„ ุณุทุฑ ู…ู† ุงู„ ABC cursor ู‡ูŠุนุทูŠู†ูŠ
394
00:28:12,380 --> 00:28:14,940
ุงู„ name ูˆ ุงู„ salary ุจุฏูŠ ุฃุฎุฐู†ู‡ู… ููŠ ุงู„ X ูˆ ููŠ ุงู„ Y
395
00:28:14,940 --> 00:28:21,380
ุฎุฐู†ู†ุงู‡ู… ู‡ุฑูˆุญ ุฃุทุจุน ุทุจุนุช ุณุทุฑ ุงู„ name ู‚ูŠู…ุฉ ุงู„ X ุงู„
396
00:28:21,380 --> 00:28:26,860
salary ู‚ูŠู…ุฉ ุงู„ Y fetch
397
00:28:26,860 --> 00:28:32,520
ูƒู…ุงู† ู…ุฑุฉู„ู„ ABC ููŠ ุงู„ X ูˆ ููŠ ุงู„ Y ุทุจุนุช ูƒู…ุงู† ู…ูˆุธู
398
00:28:32,520 --> 00:28:38,540
ูƒู…ุงู† ุงุณู… ูˆ ูƒู…ุงู† ูƒู…ุงู† salary Fetch ูƒู…ุงู† ู…ุฑุฉ ุชุงู„ุชุฉ ูˆ
399
00:28:38,540 --> 00:28:44,060
ู‡ูƒุฐุง ุทุฑูŠู‚ุฉ ู‡ุฐู‡ ุตุญ ููŠ ุงู„ุดุบู„ ุจุฏุงุฆูŠุฉ ุจุฏุงุฆูŠุฉ ุงู†ุง ูƒุฑุฑุช
400
00:28:44,060 --> 00:28:46,760
ุงู„ code ุชู„ุช ู…ุฑุงุช ุงู„ู…ู†ุทู‚ ุจูŠุญูƒูŠ ุงู†ูŠ ู…ุงูƒุฑุฑุด ุชู„ุช ูˆู„ุง
401
00:28:46,760 --> 00:28:49,320
ุนุดุฑ ูˆู„ุง ุนุดุฑูŠู† ุงุญุทู‡ ููŠ loop ุงู„ example ุงู„ู„ูŠ ุจุนุฏู‡
402
00:28:49,320 --> 00:28:55,120
ุงุญู†ุง ู†ุญุทู‡ ููŠ loop ุฎู„ุตู†ุง ู…ู† ุงู„ ABC cursor ุจุนุฏ ุงู„
403
00:28:55,120 --> 00:28:59,800
open ูˆ ุงู„ fetch ุฎู„ุตู†ุง ุงุด ุจู†ุนู…ู„Close ุงู„ ABC ูˆ End
404
00:28:59,800 --> 00:29:04,600
ุงูŠุด ุงู„ู†ุชูŠุฌุฉ ุงู†ู‡ ุทุจุนุง ุนู†ุฏ ุงู„ name Smith ุฑุงุชุจู‡ 800
405
00:29:04,600 --> 00:29:11,280
ุงู„ name Allen ุฑุงุชุจู‡ 1600 ุงู„ name Ward ุฑุงุชุจู‡ 1250
406
00:29:11,280 --> 00:29:15,600
ุงู‡ู…
407
00:29:15,600 --> 00:29:17,960
ู…ู† ุฑุงุชุจ ุงู…ุฑูŠูƒุง ุงู† ุงุญู†ุง ุงูุชุฑุถู†ุง ุงู†ู‡ ูุนู„ุง ููŠู‡ ููŠ ุงู„
408
00:29:17,960 --> 00:29:20,320
cursor ุชู„ุงุชุฉ ุทุจ ู„ูˆ ูƒุงู† ููŠู‡ ููŠ ุงู„ cursor ุงุชู†ูŠู†
409
00:29:20,320 --> 00:29:25,030
ุงู„ุชุงู„ุชุฉ ู‡ุชุนู…ู„ู„ูŠ errorุงู„ุชุงู„ุชุฉ ู‡ุชุนู…ู„ ูŠู‚ุฑุฑ ู„ูˆ ูƒุงู† ู‡ูˆ
410
00:29:25,030 --> 00:29:28,190
ูุนู„ูŠุง ู…ุง ููŠู‡ ุบูŠุฑ ุงุชู†ูŠู† ูุจุงู„ุดูƒู„ ู‡ุฐุง ุงู†ุง ููŠ ุนู†ุฏูŠ
411
00:29:28,190 --> 00:29:33,710
ุชูƒุฑุงุฑ ู„ู„ code ู…ู…ูƒู† ูŠูƒูˆู† ุงู„ู ุทุงู„ุจ ุงู„ู ู…ูˆุธู ู…ุด ู‡ูƒุฑุฑ
412
00:29:33,710 --> 00:29:36,650
ุงู„ู ุณุทุฑ ููŠ ุงู„ code ุจุงู„ุงุถุงูุฉ ุงู† ุงู†ุง ู…ุด ุนุงุฑู
413
00:29:36,650 --> 00:29:41,710
ุงู…ุชุญุงู†ุชูŠ ูุงู„ุตุญ ุงู† ุงู†ุง ุงุณุชุฎุฏู… ุงู„ loop ู„ู†ุนุฏู„ ุงู„ code
414
00:29:41,710 --> 00:29:47,810
ูˆ ู†ุณุชุฎุฏู… loop cursor abc is select ุฃุฎุฏ ูƒู„ ุงู„
415
00:29:47,810 --> 00:29:52,170
columnsfrom employee ูู…ุจุงุดุฑุฉ ู…ุฏุงู… ุฃุฎุฏุช ูƒู„ ุงู„
416
00:29:52,170 --> 00:29:54,250
columns ุงู„ variable ุงู„ู„ูŠ ุจุฏูŠ ุฃุฌูŠุจู‡ ูŠุงู…ุง ุจุฏูŠ ุฃุฌูŠุจ
417
00:29:54,250 --> 00:29:57,330
ุฃุฑุจุนุฉ ุฃูˆ ุฎู…ุณุฉ ุฃูˆ ุณุชุฉ variables ุจุนุฏุฏ ุงู„ columns ุฃูˆ
418
00:29:57,330 --> 00:30:00,930
ุจุฏูŠ ุฃุนู…ู„ variable ูˆุงุญุฏ ุงุดู†ูˆุนู‡ ู…ุด type ุฑูˆ type ุนุดุงู†
419
00:30:00,930 --> 00:30:03,910
ูŠุงุฎุฏ ุณุทุฑ ูƒุงู…ู„ ู‡ุงูŠ ูุงุฏุฉ ุงู„ raw type ุจูˆูุฑ ุนู„ูŠู‡ ููŠ ุงู„
420
00:30:03,910 --> 00:30:07,970
code ุจุฏู„ ู…ุง ู†ูƒุชุจ code ุทูˆูŠู„ ููŠ code ุตุบูŠุฑ ุจู†ุฎุชุตุฑ
421
00:30:07,970 --> 00:30:12,580
ุงู„ุดุบู„ beginุจุฏุฃู†ุง ู†ุณุชุฎุฏู… ุงู„ F ูˆ ุงู„ loop ู…ุน ุงู„
422
00:30:12,580 --> 00:30:17,520
cursor ุจุดูƒู„ ูŠู…ู†ุน ุงู„ errors if not ุงู„ ABC is open
423
00:30:17,520 --> 00:30:22,660
then ูŠุนู†ูŠ ุญุงุฌุฉ ุฃูุญุต ุงู„ ABC is open ุฅุฐุง ู…ุด open ูˆ
424
00:30:22,660 --> 00:30:25,680
ุฃุนุทุงู†ูŠ false ู‡ุนู…ู„ not ูˆ ุฃุฑูˆุญ ุฃุนู…ู„ู‡ open ุฅุฐุง ู…ูุชูˆุญ
425
00:30:25,680 --> 00:30:29,040
ู…ู† ุฃูˆู„ ู…ุด ุณุงุฏูŠ ุฃู†ุง ุงู„ cursor ู‡ุฐุง ู‚ุจู„ ู‡ูŠูƒ ู…ุนู…ู„ู‡
426
00:30:29,040 --> 00:30:33,940
open ู‚ุจู„ ู‡ูŠูƒ ู…ุด ู‡ู†ุนู…ู„ open ู‡ุชุตูŠุฑ false ูˆ ู†ุทู„ุน ุจุฑุง
427
00:30:33,940 --> 00:30:38,320
ูุฃู†ุง ุจูุญุต open ู…ุด open ุฅุฐุง ู…ุด openุฑูˆุญ ุงูุชุญ ูˆ ุงุนู…ู„
428
00:30:38,320 --> 00:30:45,480
ู„ู‚ุจู„ End if ู‡ุนู…ู„ fetch ู„ุฃูˆู„ ู…ุฑุฉ ูˆ ุญุทู‡ ููŠ ุงู„ X ูˆ
429
00:30:45,480 --> 00:30:50,960
ุญุงุฌุฉ ุงุทุจุน ุงู„ output x.name ูˆ ุจุนุฏูŠู† ู‡ูŠุชุนุงู…ู„ ู…ุซู„ุง
430
00:30:50,960 --> 00:30:54,500
example ุนู„ู‰ ุงู„ row count ุนุฏุฏ ุงู„ุฃุณุทูˆุฑ ูˆ ู„ู…ุง ู‡ุฑูˆุญ
431
00:30:54,500 --> 00:30:59,900
ุงุทุจุน number of rows ุทู„ุนูˆุง ุงุณู… ุงู„ูƒูŠุฑุณุฑ ูˆ ุงุนุทูŠุชูˆุง
432
00:30:59,900 --> 00:31:03,750
row count ูƒู… ู„ุงุฒู… ุชุทู„ุน ุงู„ row countูˆุงุญุฏ ู„ุงู†
433
00:31:03,750 --> 00:31:06,650
ู…ุงุงุฎุฏู†ุงุด ุบูŠุฑ ุณุทุฑ ูˆุงุญุฏ ูˆุฑุงุญุธูˆุง ูƒูŠู ุงุณุชุฎุฏู…ู†ุง ุงู„ is
434
00:31:06,650 --> 00:31:12,450
open ู…ุน ุงุณู… ู…ูŠู† ุงุฐุง ุนู†ุฏู‰ ูƒู…ุงู† cursor ุชุงู†ู‰ ูƒู„ ูˆุงุญุฏ
435
00:31:12,450 --> 00:31:15,730
ุจุงุณู…ู‡ ุจุญุท ุงุณู…ู‡ is open ุงุณู…ู‡ row count ุงุณู…ู‡ found
436
00:31:15,730 --> 00:31:21,170
ุงูˆ not found ู„ุงู† ุจุนุฏู‡ุง ุจูุญุต ูƒู…ุงู† ู…ุฑุฉ is open ุงุฐุง
437
00:31:21,170 --> 00:31:26,870
ู…ูุชูˆุญ ุจุฏุงุดูŠ ุงุฑูˆุญ ุงุนู…ู„ู‡ close ุณูƒุฑู†ุง and if ูุฑุงุญ ุทุจุน
438
00:31:26,870 --> 00:31:31,390
ู„ู„ name smith ุนุฏุฏ ุงู„ู‚ุณุทุฑ ูˆุงุญุฏุจุณ ู‡ูŠูƒ ุงุญู†ุง ุงุชุนุงู…ู„ู†ุง
439
00:31:31,390 --> 00:31:36,690
ููŠ ุนู…ู„ูŠุฉ ุงู„ูุชุญ ู„ู„ cursor ูˆุงู„ุงุบู„ุงู‚ ุจุทุฑูŠู‚ุฉ ุขู…ู†ุฉ
440
00:31:36,690 --> 00:31:42,050
ุงุณุชุฎุฏู…ู†ุง ุงู„ is open ุญุณ ุงู†ูŠ ู…ุงุบู„ุทุด ุงู†ูŠ ู…ุงุณูƒุฑุด ุงุดูŠ
441
00:31:42,050 --> 00:31:46,730
ู…ุด ู…ูุชูˆุญ ูˆู…ุงูุชุญุด cursor ู‡ูˆ ุงุตู„ุง ู…ูุชูˆุญ ุงุฑุฏ ุงุนู…ู„ู‡
442
00:31:46,730 --> 00:31:54,710
ูƒู…ุงู† ู…ุฑุฉ open ู„ุงู† ุจุฏุฃ ุงุณุชุฎุฏู… ุงู„ู„ูŠ ู‡ูŠ ุงู„ loop ู‡ุฐู‡
443
00:31:54,710 --> 00:32:00,500
ุงู„ loop ู†ูุณ ุงู„ code ุงู„ุณุงุจู‚ ุจุงู„ุถุจุทุงู„ X ุนุจุงุฑุฉ ุนู† raw
444
00:32:00,500 --> 00:32:04,260
type ูˆุงู„ cursor ุงุณู…ู‡ abc ุจูŠุงุฎุฏ star from ุงู„
445
00:32:04,260 --> 00:32:10,260
employee begin ุฑูˆุญู†ุง ูุชุญู†ุง ุฅุฐุง ุจุฏูƒ ุชูุฒุนูŠ ุงู„ูƒูˆุฏ
446
00:32:10,260 --> 00:32:16,660
ุงู„ุฃูˆู„ุง ุงุนู…ู„ if not is openุฃุฑูˆุญ ุฃุนู…ู„ู‡ openุŒ ุชู…ุงู…ุŸ
447
00:32:16,660 --> 00:32:18,840
ู„ุฅู† ุฃู†ุง ุจุฏูŠ ุฃุนู…ู„ loopุŒ ุงู„ loop ู‡ูŠ ู…ู…ูƒู† ุชูƒูˆู† for,
448
00:32:18,940 --> 00:32:21,920
while, exit, whenุŒ ุฃูŠ ู†ูˆุน ู…ู† loops ุงู„ู„ูŠ ุฃุฎุฏู†ุงู‡ู…ุŒ
449
00:32:21,920 --> 00:32:26,240
ู‡ุนู…ู„ loop, exit, whenุŒ ุฅูŠุดุŸ ุงู„ ABC ู…ุงู„ู‡ุŸ not
450
00:32:26,240 --> 00:32:28,680
foundุŒ not foundุŒ ูŠุนู†ูŠ ุฅุฐุง ุฃู†ุง ุฌูŠุชุŒ ุนู…ู„ุช fetch
451
00:32:28,680 --> 00:32:35,020
ูˆู…ุงุนุทุงู†ูŠุด ุฅุดูŠุŒ ู…ุนู†ุงุชู‡ ุฅูŠุดุŸ ู…ุนู†ุงุชู‡ ุจุฏูŠ ุฃุทู„ุนุŒ ู…ุงุถู„ุด
452
00:32:35,020 --> 00:32:38,980
ุฅุดูŠ ููŠ ุงู„ .. ู…ุงุถู„ุด ุฅุดูŠ ุฃู‚ุฑุง ูˆ ุฃุนู…ู„ู‡ fetchูุชุด ุงู„ุงู†
453
00:32:38,980 --> 00:32:43,860
abc into x ูุชู‚ูˆู„ ู„ู…ุง ู‡ุฐุง ุงู„ุดุฑุท ู…ุด ู…ุชุญู‚ู‚ ู‡ุถู„ู†ูŠ ุงุฏุฎู„
454
00:32:43,860 --> 00:32:46,880
ููŠ ุงู„ loop ูƒู„ ู…ุฑุฉ ู‡ุถู„ู†ูŠ ูุชุด ูุชุด ู„ู„ุณุทุฑ ุงู„ู„ูŠ ุจุนุฏ ูˆ
455
00:32:46,880 --> 00:32:51,340
ู„ุนูŠู† ู…ุง ุงุฎู„ุต ูˆ ุงู„ not found ู‡ุชุนุทูŠู†ูŠ true ุจุทู„ุน ู…ู†
456
00:32:51,340 --> 00:32:54,480
ุงู„ loop ู‡ุงูŠ ู†ู‡ุงูŠุฉ ุงู„ loop ููƒู„ ู…ุฑุฉ ุงูŠุด ุจุฏู‡ ุงุนู…ู„ ุจุณ
457
00:32:54,480 --> 00:33:00,720
ุจุฏู‡ ุงุทุจุน ุงุณู… ุงู„ู…ูˆุธู ูˆ ุงู„ุฑุงุชุจ ุชุจุนู‡ x dot salary ูˆ x
458
00:33:00,720 --> 00:33:05,920
dot ุงู„ e name ูˆ ุงุทุจุน ุฌู†ุจ ุงู„ุงุณู… ูƒู„ู…ุฉ name ูˆ ุฌู†ุจ ุงู„
459
00:33:05,920 --> 00:33:10,500
salary ุงูƒุชุจ salary isู„ูˆ ููŠ ุนู†ุฏูŠ ุนุดุฑุฉ ู…ูˆุธููŠู† ููŠ
460
00:33:10,500 --> 00:33:14,560
ุงู„ุฌุฏูˆู„ ู‡ุชู„ู ุงู„ู„ูˆุจ ู‡ูŠ ุนุดุฑ ู…ุฑุงุช ูˆ ุฃุทุจุนู‡ู… ูƒู„ู‡ู… ุนุดุฑูŠู†
461
00:33:14,560 --> 00:33:18,880
ู‡ูŠู„ู ุนุดุฑูŠู† ุฃู„ู ู‡ูŠู„ู ุฃู„ู ู…ุงูƒุฑุฑุชุด ุงู„ code ุฃู„ู ู…ุฑุฉ ุฒูŠ
462
00:33:18,880 --> 00:33:22,560
ุงู„ุฃู…ุซู„ ุงู„ุณุงุจู‚ ุฃู†ุง ุธู† ุฃู†ูŠ ุฃูƒุชุจ fetch ุงู„ close ุฎู„ุตู†ุง
463
00:33:22,560 --> 00:33:27,620
ู‡ูŠ open ู‡ูŠ fetch ูˆ ุงู„ fetch ููŠ ุงู„ู„ูˆุจ ุฎู„ุตู†ุง ู…ู†
464
00:33:27,620 --> 00:33:32,240
ุงู„ู„ูˆุจ ูŠุนู…ู„ู†ุง close ูˆ end ุฑุงุญ ุทุจุนุง ุนู†ุฏูŠ ุงูŠุด ุนู†ุฏูŠ
465
00:33:32,240 --> 00:33:35,660
ู…ุซู„ุง ุฎู…ุณุฉ ุนุดุฑ ุงุชู†ุงุดุฑ ู…ูˆุธู ูƒู„ ูˆุงุญุฏ ุงุณู…ู‡ ุฑุงุชุจ ูˆุงุณู…ู‡
466
00:33:35,660 --> 00:33:42,350
ุฑุงุชุจ ูˆุงุณู…ู‡ ุฑุงุชุจูˆุงู„ูŠ ุจูˆุนู„ุงู…ุชู‡ Guest ููŠ ูู†ุฏู‚ ูˆ
467
00:33:42,350 --> 00:33:47,570
ุงู„ุบุฑูุฉ ุงู„ู„ูŠ ุญุงุฌุฒู‡ุง ุฃูˆ ุงู„ุชุงุฑูŠุฎ ุงู„ู„ูŠ ู‡ูˆ ุญุงุฌุฒ ููŠู‡
468
00:33:47,570 --> 00:33:51,150
Guest ูˆ ุงู„ price ุชุจุน ูุทูˆุฑุชู‡ ุฃูˆ order ูˆ ู‚ูŠู…ุฉ
469
00:33:51,150 --> 00:33:54,550
ุงู„ูุทูˆุฑุฉ ุงู„ price ุจุชุงุนุฉ ุงู„ order ูƒู„ ู‡ุฐุง ุจุฏู„ ู…ุง ู†ุนู…ู„
470
00:33:54,550 --> 00:33:58,090
ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ .. ููŠ ุงู„ select ุงู„ุนุงุฏูŠุฉ ุจุชุทู„ุน ุนู†ุฏู‰
471
00:33:58,090 --> 00:34:02,470
ุงู„ุฃุณู…ุงุก ูˆ ุงู„ู‚ูŠู… ุจุฏูˆู† text ุจุณ ุฅุฐุง ุจุฏู‰ text ุญูˆุงู„ูŠู‡ุง
472
00:34:02,470 --> 00:34:08,030
ุฒูŠ ู‡ูŠูƒุจุฏูŠ ุงุดูŠ ุฒูŠ ุงูŠุด ุฒูŠ ุงู„ function ู‡ุฐู‡ ูˆ ุชุณู‡ู„
473
00:34:08,030 --> 00:34:12,290
ุนู„ูŠู‡ ุงู„ุดุบู„ ุนุฑูู†ุง ุงูŠุด ูุงุฆุฏุฉ ุงู„ cursorุŸ ู…ูŠู† ู„ุฎุต
474
00:34:12,290 --> 00:34:19,050
ูุงุฆุฏุฉ ุงู„ cursor ููŠ ุงู„ุณุทุฑุŸ ุจุงู„ุถุจุท ุงุญู†ุง ููŠ ุงู„
475
00:34:19,050 --> 00:34:22,810
function ูˆ ุงู„ procedure ุงู„ุนุงุฏู‰ ู†ู‚ุฏุฑ ู†ุชุนุงู…ู„ ุจุณ ู…ุน
476
00:34:22,810 --> 00:34:25,910
variable ูˆุงุญุฏ ุฑุงุฌุน ู…ู† ุงู„ select select ุงู†ุชูˆุง
477
00:34:25,910 --> 00:34:29,550
ุจุชุนุทูŠู†ูŠ variable ูˆุงุญุฏ ุงู„ cursor ุงู„ููƒุฑุฉ ููŠู‡ ุงู†ู‡
478
00:34:31,520 --> 00:34:34,420
ู…ุฌู…ูˆุนุฉ ู…ู† ุงู„ rows ุจุฎุฒูŠู†ู‡ุง ููŠ ุงู„ูƒูŠุฑุณุฑ ูˆุจุชุนุงู…ู„ ู…ุน
479
00:34:34,420 --> 00:34:39,240
ุงู„ูƒูŠุฑุณุฑ ููŠ loop ู…ู† ุฎู„ุงู„ ุงู„ fetch ุงู„ูƒูŠุฑุณุฑ ุจุฏู‡ ุชุนุฑูŠู
480
00:34:39,240 --> 00:34:43,160
ูƒูŠุฑุณุฑู‡ ุงุณู… ุงู„ select ุจุฏู‡ open ูˆ ุจุฏู‡ close ูˆ ุจูŠู† ุงู„
481
00:34:43,160 --> 00:34:47,400
open ูˆ ุงู„ close ููŠ ุนู†ุฏูŠ ู…ูŠู†ุŸ ููŠ ุนู†ุฏูŠ fetch ุจุชูƒูˆู†
482
00:34:47,400 --> 00:34:51,440
ู…ูˆุฌูˆุฏุฉ ุฌูˆุง loopูƒูŠู ุจู†ู‡ูŠ ุงู„ loop ุฃูˆ ูƒูŠู ุงุชุญูƒู… ููŠ ุงู„
483
00:34:51,440 --> 00:34:55,260
loop ู…ู† ุฎู„ุงู„ ุงู„ found ูˆ ุงู„ not found attribute
484
00:34:55,260 --> 00:34:58,860
ุจุชุงุนุฉ ุงู„ูƒูŠุฑุณุฑ ูƒูŠู ุจุนุฑู ุงู†ู‡ open ูˆ ู„ุง ู…ุด open ู…ู†
485
00:34:58,860 --> 00:35:02,200
ุฎู„ุงู„ ุงู„ is open attribute ุชุจุน ุงู„ูƒูŠุฑุณุฑ ูƒูŠู ุจุนุฑู ุนุฏุฏ
486
00:35:02,200 --> 00:35:05,040
ุงู„ุฃุณุทูˆุฑ ูŠุนู†ูŠ ุงุญู†ุง ู…ู…ูƒู† ู†ุทุจุน ุจุณ ู†ุฎู„ุต ุงู„ loop ู‡ุงูŠ ูˆ
487
00:35:05,040 --> 00:35:08,820
ู†ุทู„ุน ู‚ุจู„ ู…ุง ู†ุนู…ู„ close ููŠ ุงู„ู…ู†ุทู‚ุฉ ู‡ุงูŠ ุจุนุฏ ุงู„ loop
488
00:35:08,820 --> 00:35:11,880
ูˆ ู‚ุจู„ ุงู„ close ู…ู…ูƒู† ู†ุฑูˆุญ ู†ุทุจุน ุงู„ู„ูŠ ู‡ูŠ ุงู„ row count
489
00:35:11,880 --> 00:35:16,000
ูŠุนุทูŠู†ูŠ ุนุฏุฏ ู…ู† ุนุฏุฏ ุงู„ุฃุณุทูˆุฑ ุงู„ู„ูŠ ุทุจุนู†ุงู‡ู… ู†ุนุฑู ุฃูƒู…
490
00:35:16,000 --> 00:35:21,960
ู…ูˆุธู ูƒุงู† ุนู†ุฏู†ุง ุชู…ุงู…ุŸุฃุฎุฑ ุดูŠุก ุฃุฑูŠุฏ ุฃู† ุฃู‚ูˆู„ู‡ ุฃู† ู‡ู†ุงูƒ
491
00:35:21,960 --> 00:35:26,540
Loop ุฎุตูˆุตูŠ ุชุชุนุงู…ู„ ู…ุน ุงู„ูƒูŠุฑุณุฑ ุจูƒู„ ุณู‡ูˆู„ุฉ ูˆู‡ูˆ ุงู„ู€ for
492
00:35:26,540 --> 00:35:31,800
loop ุงู„ู€ for loop ุชุบู†ูŠู†ูŠ ุนู† ุงู„ fetch ูˆู‡ุฐุง ู‡ูˆ ูƒูˆุฏ
493
00:35:31,800 --> 00:35:40,320
ุงู„ู€ for loop ู…ุน ุงู„ูƒูŠุฑุณุฑ ุฏูƒู„ูŠุฑ ู‡ุฐุง ุงู„ูƒูŠุฑุณุฑ ุนุฑูู†ุงู‡
494
00:35:40,320 --> 00:35:43,060
ุนุฑูุช ูƒูŠุฑุณุฑ ููŠ where statement
495
00:35:47,240 --> 00:35:51,300
ABC ุงุญู†ุง ูƒู†ุง ููŠ ุงู„ four ู†ูƒุชุจ four X N ูˆู†ุนู…ู„ range
496
00:35:51,300 --> 00:35:55,820
ูˆุงุญุฏ ู„ู…ุซุงู„ ู„ู…ูŠุฉ ุตุญุŸ ุงู„ุขู† ุจุฏู„ ุงู„ range ู…ู† ูˆุงุญุฏ ู„ู…ูŠุฉ
497
00:35:55,820 --> 00:36:00,920
N ุงุณู… ุงู„ูƒูŠุฑุณุฑ ูู‡ูˆ ู„ุญุงู„ู‡ุง ุงู„ loop ุจุชุตูŠุฑ ุชู…ุดูŠ ุงู„ X
498
00:36:00,920 --> 00:36:04,760
ู‡ุฐุง ุฌูˆุง ู…ู†ุŸ ุฌูˆุง ุงู„ูƒูŠุฑุณุฑ ุนู„ู‰ ุนุงุฏู„ ุฃุณุทูˆุฑ ุฒูŠ ุงู„ four
499
00:36:04,760 --> 00:36:07,840
loop ุงู„ู„ูŠ ูƒู†ุช ุฃุฎุฏู‡ุง ููŠ ุงู„ python ู…ุน ุงู„ array four
500
00:36:07,840 --> 00:36:11,700
X N ูˆุงุณู… ุงู„ array ูุฃู…ุดูŠ ุนู„ู‰ ูƒู„ ุงู„ array ู‡ุฐู‡ ู†ูุณ
501
00:36:11,700 --> 00:36:14,580
ุงู„ููƒุฑุฉ four X N ุงุณู… ุงู„ูƒูŠุฑุณุฑ ุชู…ุดูŠ ุนู„ู‰ ูƒู„ ุงู„ูƒูŠุฑุณุฑ
502
00:36:14,580 --> 00:36:20,470
loop ูˆ end loopูˆ ู„ุงุญุธูˆุง ููŠู‡ ูุชุด ุงูˆุชูˆู…ุงุชูŠูƒ ู„ุญุงู„ุฉ
503
00:36:20,470 --> 00:36:25,410
ู‡ุฐู‡ ุงู„ four loop in abc ุจุชู…ุดูŠ ุนู„ู‰ ุนู†ุงุตุฑ ุจุฏูˆู† ูุชุด
504
00:36:25,410 --> 00:36:30,590
ุจุฏู‡ุงุด ูุชุด ุจุณ ุจุฏู†ุงุงุด ูˆู„ุง ุญุชู‰ open ูƒู…ุงู† ูˆู„ุง ุงุดูŠ ู‡ุง
505
00:36:30,590 --> 00:36:34,730
using ุงู„ four loop means ุงู„ cursor will implicitly
506
00:36:34,730 --> 00:36:42,770
ู„ุญุงู„ู‡ open ูˆ fetched ูˆ ุจุณ ุชุฎู„ุต ุงู„ loop closedูุงุญู†ุง
507
00:36:42,770 --> 00:36:45,450
ุฃุญุณู† ุฅูŠุด ู†ุณุชุฎุฏู… mean ู‡ุงูŠ ุจุชุฑูŠุญู†ุง ููŠ ุงู„ code ู„ุง ุจุฏู‡
508
00:36:45,450 --> 00:36:49,190
open ุงู„ูƒูŠุฑุณุฑ ูˆู„ุง ุจุฏู‡ closed ูˆู„ุง ุจุฏู‡ fetch ุฃู…ุง ุฅุฐุง
509
00:36:49,190 --> 00:36:52,930
ุงุณุชุฎุฏู…ู†ุง ุงู„ while ุฃูˆ ุงู„ exit when ู„ุงุฒู… ุฃุญู†ุง ู‚ุจู„
510
00:36:52,930 --> 00:36:55,490
ุงู„ู„ูŠ ูˆ ุจู†ุนู…ู„ open ูˆ ุจุนุฏ ุงู„ู„ูŠ ูˆ ุจู†ุนู…ู„ close ูˆ ู†ุญุท
511
00:36:55,490 --> 00:36:59,890
ุณุทุฑ ุงู„ fetch ููŠ ุงู„ูˆุณุท ูˆ ู†ูุญุต ุนู„ู‰ found ูˆ not found
512
00:36:59,890 --> 00:37:04,470
ุนุดุงู† ู†ุทู„ุน ู‡ุฐุง ู…ุงุจุฏูŠุด ูุญุต ุญุชู‰ ูƒู…ุงู† ู„ุฃู† ุฎู„ุงุต ู‡ูŠ
513
00:37:04,470 --> 00:37:08,890
ู„ุญุงู„ุฉ for x in ุงุณู… ุงู„ูƒูŠุฑุณุฑ ูุงุญู†ุง ุญุงูˆู„ูˆุง ุฏุงูŠู…ุง
514
00:37:08,890 --> 00:37:13,920
ุชุญูุธูˆุง ุงู„ูƒูˆุฏ ู‡ุฐุง ุฃุณู‡ู„ ุฅูŠุดู„ู„ุดุบู„ ูˆ ู„ู„ุจุฑู…ุฌุฉ ู‡ูŠูƒ ุฃู†ุง
515
00:37:13,920 --> 00:37:17,680
ุจูƒูˆู† ุฎู„ุตู†ุง ุงู„ cursor ุฎู„ุตู†ุง ุงู„ function ุฎู„ุตู†ุง ุงู„
516
00:37:17,680 --> 00:37:22,140
procedure ู„ุฃ ู„ุณู‡ ู…ุฎู„ุตู†ุงุด ุถุงูŠู„ ุนู†ุฏูŠ ุงู„ู„ูŠ ู‡ูˆ ุฃู‡ู…
517
00:37:22,140 --> 00:37:24,640
ู…ูˆุถูˆุน ููŠ ุงู„ chapter ุงู„ู„ูŠ ู‡ูˆ ุงู„ triggers ุจุฏู†ุง ู†ุฑูƒุฒ
518
00:37:24,640 --> 00:37:26,260
ุนู„ู‰ ุงู„ triggers ุงู„ู…ุฑุงุช ุงู„ู‚ุงุฏู…ุฉ ุงู† ุดุงุก ุงู„ู„ู‡