<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.viadat.com/index.php?action=history&amp;feed=atom&amp;title=Sample_DB_Importer_Queries</id>
	<title>Sample DB Importer Queries - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.viadat.com/index.php?action=history&amp;feed=atom&amp;title=Sample_DB_Importer_Queries"/>
	<link rel="alternate" type="text/html" href="https://docs.viadat.com/index.php?title=Sample_DB_Importer_Queries&amp;action=history"/>
	<updated>2026-04-04T00:50:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.10</generator>
	<entry>
		<id>https://docs.viadat.com/index.php?title=Sample_DB_Importer_Queries&amp;diff=134&amp;oldid=prev</id>
		<title>Admin: /* For example, if your database table is named &quot;store_locations&quot;: */</title>
		<link rel="alternate" type="text/html" href="https://docs.viadat.com/index.php?title=Sample_DB_Importer_Queries&amp;diff=134&amp;oldid=prev"/>
		<updated>2010-02-03T13:52:31Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;For example, if your database table is named &amp;quot;store_locations&amp;quot;:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 13:52, 3 February 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===For example, if &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;your &lt;/del&gt;database table is named &amp;quot;store_locations&amp;quot;:===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===For example, if &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the original &lt;/ins&gt;database table &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;that you want to import locations from &lt;/ins&gt;is named &amp;quot;store_locations&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, you can do the following&lt;/ins&gt;:===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SELECT * FROM store_locations&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SELECT * FROM store_locations&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(It will pull all information from your 'store_locations' table into the Store Locator admin interface in order to be matched to the &amp;quot;wp_store_locator&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(It will pull all information from your 'store_locations' table into the Store Locator admin interface in order to be matched to the &amp;quot;wp_store_locator&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===If you would like to import 200 locations at a time, so you don't overwhelm your database:===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===If you would like to import 200 locations at a time, so you don't overwhelm your database:===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://docs.viadat.com/index.php?title=Sample_DB_Importer_Queries&amp;diff=93&amp;oldid=prev</id>
		<title>Admin: Protected &quot;Sample DB Importer Queries&quot;: Excessive vandalism ([edit=autoconfirmed] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://docs.viadat.com/index.php?title=Sample_DB_Importer_Queries&amp;diff=93&amp;oldid=prev"/>
		<updated>2009-11-02T21:07:36Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/Sample_DB_Importer_Queries&quot; title=&quot;Sample DB Importer Queries&quot;&gt;Sample DB Importer Queries&lt;/a&gt;&amp;quot;: Excessive vandalism ([edit=autoconfirmed] (indefinite))&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 21:07, 2 November 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://docs.viadat.com/index.php?title=Sample_DB_Importer_Queries&amp;diff=30&amp;oldid=prev</id>
		<title>Admin: Undo revision 29 by 65.111.184.207 (Talk)</title>
		<link rel="alternate" type="text/html" href="https://docs.viadat.com/index.php?title=Sample_DB_Importer_Queries&amp;diff=30&amp;oldid=prev"/>
		<updated>2009-09-02T21:44:04Z</updated>

		<summary type="html">&lt;p&gt;Undo revision 29 by &lt;a href=&quot;/Special:Contributions/65.111.184.207&quot; class=&quot;new&quot; title=&quot;Special:Contributions/65.111.184.207 (page does not exist)&quot;&gt;65.111.184.207&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:65.111.184.207&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:65.111.184.207 (page does not exist)&quot;&gt;Talk&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===For example, if your database table is named &amp;quot;store_locations&amp;quot;:===&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM store_locations&lt;br /&gt;
&lt;br /&gt;
(It will pull all information from your 'store_locations' table into the Store Locator admin interface in order to be matched to the &amp;quot;wp_store_locator&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===If you would like to import 200 locations at a time, so you don't overwhelm your database:===&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM store_locations LIMIT 200&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===If for instance your &amp;quot;phone&amp;quot; field has numbers in the format ##########, but you want it to look like (###) ###-####:===&lt;br /&gt;
&lt;br /&gt;
UPDATE wp_store_locator SET sl_phone = CONCAT( &amp;quot;(&amp;quot;, SUBSTRING( sl_phone, 1, 3 ) , &amp;quot;) &amp;quot;, SUBSTRING( sl_phone, 4, 3 ) , &amp;quot;-&amp;quot;, SUBSTRING( sl_phone, 7, 4 ) )&lt;br /&gt;
&lt;br /&gt;
(Note: If your WordPress prefix isn't &amp;quot;wp_&amp;quot;, then update &amp;quot;wp_store_locator&amp;quot; in the below query to &amp;quot;{your WordPress prefix}store_locator&amp;quot;)&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>