<?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=2065&amp;type=atom" />
	<updated>2011-01-27T09:06:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=2065</id>
		<entry>
			<title type="html"><![CDATA[Re: сложный запрос к бд]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=14753#p14753" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2011-01-27T09:06:59Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=14753#p14753</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: сложный запрос к бд]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=14752#p14752" />
			<content type="html"><![CDATA[<p>Структуру и имя другой - новой таблице дайте пожалуйста и точно что от куда должно в неё вставиться из старой.</p>]]></content>
			<author>
				<name><![CDATA[DmitryV]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=2987</uri>
			</author>
			<updated>2011-01-27T07:11:36Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=14752#p14752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[сложный запрос к бд]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=14751#p14751" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[terveg]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=3344</uri>
			</author>
			<updated>2011-01-26T21:57:25Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=14751#p14751</id>
		</entry>
</feed>
