<?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=2065</link>
		<atom:link href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=2065&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «сложный запрос к бд».]]></description>
		<lastBuildDate>Thu, 27 Jan 2011 09:06:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: сложный запрос к бд]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=14753#p14753</link>
			<description><![CDATA[<p>Если я все правильно понял, то так:<br /></p><div class="codebox"><pre><code>UPDATE `jos_sobi2_item`
SET `icon` = REPLACE(`image`, &quot;_image.&quot;, &quot;_ico.&quot;)
WHERE `image` LIKE &quot;%\_image.%&quot;;</code></pre></div><p>Только сохраните исходные данные, чтобы откатиться, если что-то получится не так как надо.</p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Thu, 27 Jan 2011 09:06:59 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=14753#p14753</guid>
		</item>
		<item>
			<title><![CDATA[Re: сложный запрос к бд]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=14752#p14752</link>
			<description><![CDATA[<p>Структуру и имя другой - новой таблице дайте пожалуйста и точно что от куда должно в неё вставиться из старой.</p>]]></description>
			<author><![CDATA[null@example.com (DmitryV)]]></author>
			<pubDate>Thu, 27 Jan 2011 07:11:36 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=14752#p14752</guid>
		</item>
		<item>
			<title><![CDATA[сложный запрос к бд]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=14751#p14751</link>
			<description><![CDATA[<p>помогите составить / или решить по другому такую задачу<br />есть некая БД в ней таблица <strong>jos_sobi2_item</strong><br />в ней-структура<br /></p><div class="quotebox"><blockquote><p>itemid &nbsp; &nbsp; int(11) <br />title &nbsp; &nbsp; varchar(255) <br />hits &nbsp; &nbsp; int(11) <br />visits &nbsp; &nbsp; int(11) <br />published &nbsp; &nbsp; tinyint(1) <br />confirm &nbsp; &nbsp; tinyint(1) <br />approved &nbsp; &nbsp; tinyint(1) <br />archived &nbsp; &nbsp; tinyint(1) <br />publish_up &nbsp; &nbsp; datetime <br />publish_down &nbsp; &nbsp; datetime <br />checked_out &nbsp; &nbsp; int(11) <br />checked_out_time &nbsp; &nbsp; datetime <br />ordering &nbsp; &nbsp; int(11) <br />owner &nbsp; &nbsp; int(11) <br /><strong>icon &nbsp; &nbsp; varchar(200) </strong><br /><strong>image &nbsp; &nbsp; varchar(200) </strong><br />background &nbsp; &nbsp; varchar(100) <br />options &nbsp; &nbsp; text <br />params &nbsp; &nbsp; text <br />ip &nbsp; &nbsp; varchar(15) <br />last_update &nbsp; &nbsp; datetime <br />updating_user &nbsp; &nbsp; int(11) <br />updating_ip &nbsp; &nbsp; varchar(15) <br />metakey &nbsp; &nbsp; varchar(200) <br />metadesc</p></blockquote></div><p><strong>icon</strong> и <strong>image</strong> содержат ссылку на файл изображений-превью и большую картинку (вид такой xxx_ico.xxx и&nbsp; xxx_image.xxx соответственно)<br />записей в таблице больше тысячи. Необходимо заполнить пустую таблицу <strong>icon</strong> скопировав из соседней <strong>image</strong> данные, <strong>заменив image на ico</strong>.<br />Возможно ли такое сделать? или есть другой путь через ексель к примеру или другой редактор файлов *.SQL<br />SOS</p>]]></description>
			<author><![CDATA[null@example.com (terveg)]]></author>
			<pubDate>Wed, 26 Jan 2011 21:57:25 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=14751#p14751</guid>
		</item>
	</channel>
</rss>
