<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — Extracting the ID number using sql and converting to a string]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=7810</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=7810&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Extracting the ID number using sql and converting to a string.]]></description>
		<lastBuildDate>Fri, 22 Oct 2021 11:23:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Extracting the ID number using sql and converting to a string]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=42646#p42646</link>
			<description><![CDATA[<div class="quotebox"><cite>jeffmtl@hotmail.com wrote:</cite><blockquote><p>&nbsp; &nbsp; &nbsp;tmpID :=SQLExecute(&#039;SELECT id FROM dtClientName WHERE id=&#039; +fmClientSearh.TableGrid1.sqlvalue);</p><br /><p>Jeff</p></blockquote></div><p>SELECT id ... WHERE id=&#039; +fmClientSearh.TableGrid1.sqlvalue</p><br /><p>Get id from table where id = 1 ???&nbsp; &nbsp;<br />Will return 1. It is possible but stupid.</p><br /><p>Use&nbsp; tmpID := fmClientSearh.TableGrid1.dbItemID</p>]]></description>
			<author><![CDATA[null@example.com (sparrow)]]></author>
			<pubDate>Fri, 22 Oct 2021 11:23:09 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=42646#p42646</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extracting the ID number using sql and converting to a string]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=42645#p42645</link>
			<description><![CDATA[<p>Thanks Sparrow</p><p>I was over thinking this and I got into a mind jam.</p><p>&nbsp; &nbsp; &nbsp;tmpID :=SQLExecute(&#039;SELECT id FROM dtClientName WHERE id=&#039; +fmClientSearh.TableGrid1.sqlvalue);</p><p>I&#039;ll be working on the second part later on today.</p><p>much appreciated</p><p>Jeff</p>]]></description>
			<author><![CDATA[null@example.com (jeffmtl@hotmail.com)]]></author>
			<pubDate>Fri, 22 Oct 2021 11:13:32 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=42645#p42645</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extracting the ID number using sql and converting to a string]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=42644#p42644</link>
			<description><![CDATA[<p>1. SELECT id FROM .... </p><br /><br /><p>You already have an id. You get it from the <strong>fmClientSearh.TableGrid1.sqlValue</strong> table.</p><p>2. You are better off using the SQL query in the script, not in SQL BUTTON.</p><p>insert into dtFollowing(id_dtClientName,ProgressEdited,txtTitle,txNote)&nbsp; values (<strong>&#039;+fmClientSearh.TableGrid1.sqlValue+&#039;</strong> ,&#039;Yes&#039;,&#039;Test&#039;,&#039;Testnote&#039;);</p>]]></description>
			<author><![CDATA[null@example.com (sparrow)]]></author>
			<pubDate>Fri, 22 Oct 2021 08:36:34 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=42644#p42644</guid>
		</item>
		<item>
			<title><![CDATA[Extracting the ID number using sql and converting to a string]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=42643#p42643</link>
			<description><![CDATA[<p>Hi Everybody</p><p>I am trying to extract the ID number (For example : of a client) by using SQL, convert that Number into a string. </p><p>I then will use that Number(id) to &quot;INSERT INTO database (Client, Update, price) values (&#039;id&#039;,&#039;On Hold&#039;, &#039;Price pending&#039;);</p><p>So my question has 2 parts.</p><br /><p>1) Extracting the id using sql using Delphi scripting:&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;<br /><strong> Example</strong> ( I can do this which extracts the info but not the ID)&nbsp; <br /> fmGroupPresence.GroupProgressClientName.Text:= SQLExecute(&#039;SELECT txClientName FROM dtClientName WHERE id=&#039;+fmClientSearh.TableGrid1.sqlValue); </p><br /><p>2) How to insert a string into an sql using sql. I will be using the SQL BUTTON , which all is done in mysql.. </p><br /><p><strong>Example </strong> (as a test ive forced info into the table by doing this, but would need the client number to be scripted.)</p><p>insert into dtFollowing(id_dtClientName,ProgressEdited,txtTitle,txNote)&nbsp; values (&#039;23&#039;,&#039;Yes&#039;,&#039;Test&#039;,&#039;Testnote&#039;);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p>Sorry Im not more clear as I don&#039;t have the lingo used to explain what i need to do.</p><br /><p>Thanks for your help.</p><br /><br /><p>Jeff</p>]]></description>
			<author><![CDATA[null@example.com (jeffmtl@hotmail.com)]]></author>
			<pubDate>Thu, 21 Oct 2021 19:24:13 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=42643#p42643</guid>
		</item>
	</channel>
</rss>
