<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; Заполнение сроки]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=2751&amp;type=atom" />
	<updated>2012-12-01T17:16:05Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=2751</id>
		<entry>
			<title type="html"><![CDATA[Re: Заполнение сроки]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=21824#p21824" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[vinik]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=4685</uri>
			</author>
			<updated>2012-12-01T17:16:05Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=21824#p21824</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Заполнение сроки]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=21823#p21823" />
			<content type="html"><![CDATA[<p>table_name - имя таблицы.<br /></p><div class="codebox"><pre><code>UPDATE `table_name` SET
`cost` = `price` - 20</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2012-12-01T16:51:52Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=21823#p21823</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Заполнение сроки]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=21822#p21822" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[vinik]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=4685</uri>
			</author>
			<updated>2012-12-01T15:54:08Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=21822#p21822</id>
		</entry>
</feed>
