Professional Documents
Culture Documents
tp4 DBA
tp4 DBA
tp4 DBA
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
7 rows selected.
SQL> update stagiaire set sessions=(select ref(s) from gsession s where s.ns=4)
where nss=454;
0 rows updated.
SQL> update stagiaire set sessions=(select ref(s) from gsession s where s.ns=5)
where nss=454;
0 rows updated.
SQL> update stagiaire set sessions=(select ref(s) from gsession s where s.ns=6)
where nss=454;
0 rows updated.
SQL> update stagiaire set sessions=(select ref(s) from gsession s where s.ns=7)
where nss=455;
0 rows updated.
7 rows selected.
0 rows updated.
1 row updated.
1 row updated.
1 row updated.
1 row updated.
7 rows selected.
6 rows selected.
*
ERROR at line 1:
ORA-00904: "NSS": invalid identifier
6 rows selected.
SQL> update gsession set SG=(select ref(s) from stage s where s.ns='454') where
nss='session1' and nss='session2';
update gsession set SG=(select ref(s) from stage s where s.ns='454') where
nss='session1' and nss='session2'
*
ERROR at line 1:
ORA-00904: "NSS": invalid identifier
SQL> update gsession set SG=(select ref(s) from stage s where s.ns='454') where
ns='session1' and ns='session2';
update gsession set SG=(select ref(s) from stage s where s.ns='454') where
ns='session1' and ns='session2'
*
ERROR at line 1:
ORA-00904: "S"."NS": invalid identifier
SQL> update gsession set SG=(select ref(s) from stage s where s.nss='454') where
ns='session1' and ns='session2';
update gsession set SG=(select ref(s) from stage s where s.nss='454') where
ns='session1' and ns='session2'
*
ERROR at line 1:
ORA-00904: "S"."NSS": invalid identifier
SQL> update gsession set SG=(select ref(s) from stage s where s.nss=454) where
ns='session1' and ns='session2';
update gsession set SG=(select ref(s) from stage s where s.nss=454) where
ns='session1' and ns='session2'
*
ERROR at line 1:
ORA-00904: "S"."NSS": invalid identifier
SQL> update gsession set SG=(select ref(s) from stage s where s.nsg=454) where
ns='session1' and ns='session2';
0 rows updated.
SQL> update gsession set SG=(select ref(s) from stage s where s.nsg='454') where
ns='session1' and ns='session2';
0 rows updated.
SQL> update gsession set SG=(select ref(s) from stage s where s.nsg='454') where
ns='session1';
1 row updated.
SQL> update gsession set SG=(select ref(s) from stage s where s.nsg='454') where
ns='session2';
1 row updated.
SQL> update gsession set SG=(select ref(s) from stage s where s.nsg='455') where
ns='session3';
1 row updated.
SQL>