| От | Richard Poole |
|---|---|
| Тема | Re: generic insert into table |
| Дата | |
| Msg-id | 20040607220534.GA3967@guests.deus.net обсуждение исходный текст |
| Ответ на | generic insert into table (Dennis Gearon <gearond@fireserve.net>) |
| Список | pgsql-general |
On Mon, Jun 07, 2004 at 02:29:33PM -0700, Dennis Gearon wrote:
> I have the following code from an application that is 'mysql_centric'. I
> want to make it generic across all databases, if it's possible,
> especially postgres :-)
>
> mysql version:
> INSERT INTO calendar_setting SET setting='colorEvent',value='#C2DCD5';
That would be
INSERT into calendar_setting (setting, value)
VALUES ('colorEvent', '#C2DCD5');
This is the standard syntax, which is not quite the same thing as
saying it will work on all DBs - it will certainly work on both
Postgres and MySQL.
Richard
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера