<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://sqle.ru/index.php?action=history&amp;feed=atom&amp;title=PostgreSQL%2FData_Type%2Fnumeric</id>
		<title>PostgreSQL/Data Type/numeric - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://sqle.ru/index.php?action=history&amp;feed=atom&amp;title=PostgreSQL%2FData_Type%2Fnumeric"/>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=PostgreSQL/Data_Type/numeric&amp;action=history"/>
		<updated>2026-04-07T01:10:22Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://sqle.ru/index.php?title=PostgreSQL/Data_Type/numeric&amp;diff=4754&amp;oldid=prev</id>
		<title> в 13:45, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=PostgreSQL/Data_Type/numeric&amp;diff=4754&amp;oldid=prev"/>
				<updated>2010-05-26T13:45:56Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 13:45, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://sqle.ru/index.php?title=PostgreSQL/Data_Type/numeric&amp;diff=4755&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=PostgreSQL/Data_Type/numeric&amp;diff=4755&amp;oldid=prev"/>
				<updated>2010-05-26T10:14:15Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==A numeric alternative to money==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# -- A numeric alternative to money&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# CREATE TABLE money_example (&lt;br /&gt;
postgres(#             money_cash money,&lt;br /&gt;
postgres(#             numeric_cash numeric(10,2));&lt;br /&gt;
CREATE TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# INSERT INTO money_example VALUES (&amp;quot;$12.24&amp;quot;, 12.24);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# SELECT * FROM money_example;&lt;br /&gt;
 money_cash | numeric_cash&lt;br /&gt;
------------+--------------&lt;br /&gt;
     $12.24 |        12.24&lt;br /&gt;
(1 row)&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# drop table money_example;&lt;br /&gt;
DROP TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use numeric column==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# CREATE TABLE products (&lt;br /&gt;
postgres(#    product_no integer,&lt;br /&gt;
postgres(#    name text,&lt;br /&gt;
postgres(#    price numeric&lt;br /&gt;
postgres(# );&lt;br /&gt;
CREATE TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# INSERT INTO products (product_no, name, price) VALUES (1, &amp;quot;Java&amp;quot;, 1234);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# INSERT INTO products (product_no, name, price) VALUES (2, &amp;quot;SQL Server&amp;quot;, 3421);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# INSERT INTO products (product_no, name, price) VALUES (3, &amp;quot;Oracle&amp;quot;, 7623);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# INSERT INTO products (product_no, name, price) VALUES (4, &amp;quot;DB2&amp;quot;, 9874);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# INSERT INTO products (product_no, name, price) VALUES (5, &amp;quot;Access&amp;quot;, 5);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# select * from products;&lt;br /&gt;
 product_no |    name    | price&lt;br /&gt;
------------+------------+-------&lt;br /&gt;
          1 | Java       |  1234&lt;br /&gt;
          2 | SQL Server |  3421&lt;br /&gt;
          3 | Oracle     |  7623&lt;br /&gt;
          4 | DB2        |  9874&lt;br /&gt;
          5 | Access     |     5&lt;br /&gt;
(5 rows)&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# -- Updates all products that have a price of 5 to have a price of 10:&lt;br /&gt;
postgres=# UPDATE products SET price = 10 WHERE price = 5;&lt;br /&gt;
UPDATE 1&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# select * from products;&lt;br /&gt;
 product_no |    name    | price&lt;br /&gt;
------------+------------+-------&lt;br /&gt;
          1 | Java       |  1234&lt;br /&gt;
          2 | SQL Server |  3421&lt;br /&gt;
          3 | Oracle     |  7623&lt;br /&gt;
          4 | DB2        |  9874&lt;br /&gt;
          5 | Access     |    10&lt;br /&gt;
(5 rows)&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# drop table products;&lt;br /&gt;
DROP TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=#&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>