|
|
|
... where 1=2
|
|||
|---|---|---|---|
|
#18+
create new_table as select * from old_table where 1=2; Ne mogu poniati pri where 1=2 vibiraet vse zapisi is old_table. Obiesnite pojailusta pocemu? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.05.2003, 10:36 |
|
||
|
... where 1=2
|
|||
|---|---|---|---|
|
#18+
Вообще-то не должна выбирать все записи.А должна создаться табличка со структурой как у old_table Я ставлю условие where 1=0 Чудеса .... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.05.2003, 11:14 |
|
||
|
... where 1=2
|
|||
|---|---|---|---|
|
#18+
new_table identicina old_table: kak structuroi tak i soderjaniem. Tot je rezulitat polucim i pri: create table new_table as select * from old_table Vsetaki v cem smisol where 1=2? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.05.2003, 11:57 |
|
||
|
... where 1=2
|
|||
|---|---|---|---|
|
#18+
pm_test@ORCL> create table test_tbl as select * from all_objects where 2=1; Table created. pm_test@ORCL> select count(1) from test_tbl; COUNT(1) ---------- 0 pm_test@ORCL> ну чудес то не бывает... смысл where 2=1 - чтобы создать только таблицу идентичую старой, но без содержания... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.05.2003, 16:35 |
|
||
|
|

start [/forum/topic.php?fid=52&fpage=2777&tid=1990504]: |
0ms |
get settings: |
5ms |
get forum list: |
13ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
43ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
1ms |
| others: | 207ms |
| total: | 314ms |

| 0 / 0 |
