|
|
|
Импорт xml в бд sql
|
|||
|---|---|---|---|
|
#18+
есть такой xml: автор <?xml version="1.0" encoding="windows-1251" ?> <!DOCTYPE InfoPacket (View Source for full doctype...)> - <InfoPacket> <Source type="string">ПРАЙМ-ТАСС</Source> <Time type="datetime">04.09.2007 00:50:05</Time> <Title type="string">PRIME-TASS Report</Title> - <InfoItem> <Title type="string">PRIME-TASS Report</Title> - <Data> - <Table name="report"> <Column name="Country" type="string">Страна</Column> <Column name="ADate" type="string">Дата</Column> <Column name="ADateInMilliseconds" type="string">ADateInMilliseconds</Column> <Column name="USDRatio" type="string">Единиц USD</Column> <Column name="USDLast" type="string">Доллар США</Column> <Column name="EURRatio" type="string">Единиц EUR</Column> <Column name="EURLast" type="string">Евро</Column> <Column name="RURRatio" type="string">Единиц RUR</Column> <Column name="RURLast" type="string">Российский рубль</Column> - <Row> <Cell name="Country" type="string">Азербайджан</Cell> <Cell name="ADate" type="datetime">03.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188763200000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">0.8525</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">1.1627</Cell> <Cell name="RURRatio" type="int">1</Cell> <Cell name="RURLast" type="float">0.0332</Cell> </Row> - <Row> <Cell name="Country" type="string">Армения</Cell> <Cell name="ADate" type="datetime">03.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188763200000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">336.48</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">461.15</Cell> <Cell name="RURRatio" type="int">1</Cell> <Cell name="RURLast" type="float">13.13</Cell> </Row> - <Row> <Cell name="Country" type="string">Беларусь</Cell> <Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188849600000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">2147</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">2930.66</Cell> <Cell name="RURRatio" type="int">1</Cell> <Cell name="RURLast" type="float">83.9</Cell> </Row> - <Row> <Cell name="Country" type="string">Грузия</Cell> <Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188849600000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">1.662</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">2.2683</Cell> <Cell name="RURRatio" type="int">1</Cell> <Cell name="RURLast" type="float">0.0649</Cell> </Row> - <Row> <Cell name="Country" type="string">Казахстан</Cell> <Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188849600000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">125.03</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">170.64</Cell> <Cell name="RURRatio" type="int">1</Cell> <Cell name="RURLast" type="float">4.89</Cell> </Row> - <Row> <Cell name="Country" type="string">Киргизия</Cell> <Cell name="ADate" type="datetime">14.07.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1184356800000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">37.95</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">52.3312</Cell> <Cell name="RURRatio" type="int">1</Cell> <Cell name="RURLast" type="float">1.4886</Cell> </Row> - <Row> <Cell name="Country" type="string">Латвия</Cell> <Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188849600000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">0.515</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">0.702804</Cell> <Cell name="RURRatio" type="int">1</Cell> <Cell name="RURLast" type="float">0.0201</Cell> </Row> - <Row> <Cell name="Country" type="string">Литва</Cell> <Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188849600000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">2.5294</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">3.4528</Cell> <Cell name="RURRatio" type="int">10</Cell> <Cell name="RURLast" type="float">9.8896</Cell> </Row> - <Row> <Cell name="Country" type="string">Молдова</Cell> <Cell name="ADate" type="datetime">03.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188763200000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">12.0586</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">16.4165</Cell> <Cell name="RURRatio" type="int">1</Cell> <Cell name="RURLast" type="float">0.4696</Cell> </Row> - <Row> <Cell name="Country" type="string">Таджикистан</Cell> <Cell name="ADate" type="datetime">01.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188590400000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">3.4421</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">4.6847</Cell> <Cell name="RURRatio" type="int">10</Cell> <Cell name="RURLast" type="float">1.3432</Cell> </Row> - <Row> <Cell name="Country" type="string">Узбекистан</Cell> <Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188849600000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">1272.54</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">1736.1</Cell> <Cell name="RURRatio" type="int">1</Cell> <Cell name="RURLast" type="float">49.51</Cell> </Row> - <Row> <Cell name="Country" type="string">Украина</Cell> <Cell name="ADate" type="datetime">03.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188763200000</Cell> <Cell name="USDRatio" type="int">100</Cell> <Cell name="USDLast" type="float">505</Cell> <Cell name="EURRatio" type="int">100</Cell> <Cell name="EURLast" type="float">692.1025</Cell> <Cell name="RURRatio" type="int">10</Cell> <Cell name="RURLast" type="float">1.9706</Cell> </Row> - <Row> <Cell name="Country" type="string">Эстония</Cell> <Cell name="ADate" type="datetime">03.09.2007 00:00:00</Cell> <Cell name="ADateInMilliseconds" type="int">1188763200000</Cell> <Cell name="USDRatio" type="int">1</Cell> <Cell name="USDLast" type="float">11.4661</Cell> <Cell name="EURRatio" type="int">1</Cell> <Cell name="EURLast" type="float">15.6466</Cell> <Cell name="RURRatio" type="int">1</Cell> <Cell name="RURLast" type="float">0.448046</Cell> </Row> </Table> </Data> </InfoItem> </InfoPacket> как импортировать его в бд sql? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.09.2007, 00:52 |
|
||
|
Импорт xml в бд sql
|
|||
|---|---|---|---|
|
#18+
1. Запускаешь php(My|postgre|MS)SqlAdmin ,создаешь табицу, импортируешь файл 2. Делаешь дамп какой нить базы в формат sql, смотришь в Фаре через F4 как внутри это представленно, приводишь свой xml подобному виду, и объедияешь дамп с твоей базой 3. Находишь более стандартные способы 4. Ждешь манны с неба или ответов от тех кто этим занимася ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.09.2007, 09:26 |
|
||
|
|

start [/forum/search_topic.php?author=%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%815&author_mode=last_posts&do_search=1]: |
0ms |
get settings: |
10ms |
get forum list: |
15ms |
get settings: |
9ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
43ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
| others: | 440ms |
| total: | 590ms |

| 0 / 0 |

Извините, этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
... ля, ля, ля ...