<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум PHP-MyAdmin.RU &mdash; Заполнение сроки]]></title>
		<link>https://forum.php-myadmin.ru/viewtopic.php?id=2751</link>
		<atom:link href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=2751&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Заполнение сроки».]]></description>
		<lastBuildDate>Sat, 01 Dec 2012 17:16:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Заполнение сроки]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=21824#p21824</link>
			<description><![CDATA[<p>Круто. То что нужно.&nbsp; <img src="https://forum.php-myadmin.ru/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; Огромное спасибо <strong>Hanut</strong></p>]]></description>
			<author><![CDATA[null@example.com (vinik)]]></author>
			<pubDate>Sat, 01 Dec 2012 17:16:05 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=21824#p21824</guid>
		</item>
		<item>
			<title><![CDATA[Re: Заполнение сроки]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=21823#p21823</link>
			<description><![CDATA[<p>table_name - имя таблицы.<br /></p><div class="codebox"><pre><code>UPDATE `table_name` SET
`cost` = `price` - 20</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Sat, 01 Dec 2012 16:51:52 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=21823#p21823</guid>
		</item>
		<item>
			<title><![CDATA[Заполнение сроки]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=21822#p21822</link>
			<description><![CDATA[<p>Добрый день. Подскажите как можно автоматически заполнить поле &quot;cost&quot; в зависимости от суммы?<br />пример:<br /></p><div class="codebox"><pre><code>product_id   ............  price         cost
      1                     100.0000      0.0000
.
.
.
      800                   135.0000      0.0000</code></pre></div><p>Т.е нужно сделать если можно sql запрос чтобы было в таком виде:<br /></p><div class="codebox"><pre><code>product_id   ............  price         cost
      1                     100.0000      80.0000
.
.
.
      800                   135.0000      115.0000</code></pre></div><p>Нужно из price вычесть 20 и получить cost. (price-20=cost)<br />Извините если что объяснил как мог.<br /> <img src="https://forum.php-myadmin.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (vinik)]]></author>
			<pubDate>Sat, 01 Dec 2012 15:54:08 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=21822#p21822</guid>
		</item>
	</channel>
</rss>
