| От | David G Johnston |
|---|---|
| Тема | Re: How to create a specific table |
| Дата | |
| Msg-id | 1421938793554-5835026.post@n5.nabble.com обсуждение |
| Ответ на | How to create a specific table (Pierre Hsieh <pierre.hsieh@gmail.com>) |
| Ответы |
Re: How to create a specific table
|
| Список | pgsql-general |
Pierre Hsieh wrote > Hi, > > Is there anyone who can help me to create a specific table as following? > Thanks > > Pierre > > rule: > 1. just one column which type is integer in table > 2. this columns only has 1 and 2 for 50 times as following > > 1 > 2 > 1 > 2 > 1 > 2 > 1 > 2 > ..... use generate_series(...), the modulus operator (to determine even/odd via %2), and +1 HTH David J. -- View this message in context: http://postgresql.nabble.com/How-to-create-a-specific-table-tp5835024p5835026.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера