|
ASCII probleme...
|
|||
---|---|---|---|
#18+
Mne nado dorabotati script SQL, catorii vivodil bi mne vse ASCII codi vseh simvolov catorii Oracle podderjivaiet... Dlia nacialo I sozdal tablitu 'coduri_ascii' v cotoroi I hraniu simvoli Oracle v odnom pole i v drugom sootvestvuiscii emu cod ASCII. The script: prompt Tabela de coduri ASCII rem Crearea unui fisier spool... spool d:\a.txt /*****************************/ rem Distugerea tabelei coduri_ascii drop table coduri_ascii /*****************************/ rem Crearea unei tabele, care va pastra codurile ASCII create table coduri_ascii ( symbol varchar2(4), cod varchar2(4) ); commit; rem Procedura de inscriere a datelor in tabela 'coduri_ascii' declare i number := 0; begin while(i<10) loop insert into coduri_ascii(symbol, cod) values(to_char(i), to_char(ascii(to_char(i)))); i:=i+1; end loop; end; / commit; exit; Cac You videte I zapolniau tablitu tiframi s '0' do '9' i ih cod ASCII. Please pomogite, cac mne zapolniti tablitu drughimi simvolami podderjivaiusie Oracle... naprimer vseh bucv 'a' ; 'A' ; '#' ; '%' etc... ... |
|||
:
Нравится:
Не нравится:
|
|||
17.10.2002, 17:09 |
|
ASCII probleme...
|
|||
---|---|---|---|
#18+
Попробуй ... for i in 0..255 LOOP insert into coduri_ascii(symbol, cod) values(chr(i),to_char(i)); END LOOP; ... ... |
|||
:
Нравится:
Не нравится:
|
|||
17.10.2002, 18:09 |
|
ASCII probleme...
|
|||
---|---|---|---|
#18+
Во первых Trampler, Thanks. Я закончил Script и у меня получилось: prompt Tabela de coduri ASCII rem Crearea unui fisier spool... spool d:\a.txt /*****************************/ rem Golirea tabelei coduri_ascii delete coduri_ascii; /*****************************/ rem Procedura de inscriere a datelor in tabela 'coduri_ascii' declare i number; begin for i in 0..255 loop insert into coduri_ascii(symbol, cod) values(chr(i), to_char(i)); end loop; end; / commit; /***************************/ rem Formarea fisierului spool cu codurile ascii set feedback off heading off spool d:\coduri_ascii.txt set termout off trimspool on select * from coduri_ascii; rem fin de script exit; Когда Я открываю фаил "coduri_ascii.txt" первые 32-е записи, мне не понятны. Please объясните, почему имено так а не подругому... ... |
|||
:
Нравится:
Не нравится:
|
|||
18.10.2002, 11:02 |
|
ASCII probleme...
|
|||
---|---|---|---|
#18+
Содержание фаила coduri_ascii.txt: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 ! 33 " 34 # 35 $ 36 % 37 & 38 etc... ... |
|||
:
Нравится:
Не нравится:
|
|||
18.10.2002, 11:04 |
|
ASCII probleme...
|
|||
---|---|---|---|
#18+
А какими символами обозначать "возврат каретки","перевод строки","конец файла","escape","break page" ? :-) ... |
|||
:
Нравится:
Не нравится:
|
|||
18.10.2002, 11:54 |
|
ASCII probleme...
|
|||
---|---|---|---|
#18+
разу видно, человек никогда толком не работал в текстовых редакторах DOS и не общался с принтером на низком уровне :) В стандарте ASCII цветом по цвету написано: символы c #0 по #31 являются служебными. А далее рядом с этими символами приведен коментарий. На пример: #09 - Tab #10 - New line #13 - Carriet return ... |
|||
:
Нравится:
Не нравится:
|
|||
18.10.2002, 13:24 |
|
|
start [/forum/topic.php?fid=52&fpage=2837&tid=1992908]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
29ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
others: | 259ms |
total: | 378ms |
0 / 0 |