<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: using substring in sql where condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-substring-in-sql-where-condition/m-p/4820531#M1128122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can wildcard text like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dbtab where feild1 = '%like%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2008 10:42:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-21T10:42:30Z</dc:date>
    <item>
      <title>using substring in sql where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-substring-in-sql-where-condition/m-p/4820530#M1128121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write an sql select similar to this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *  into wa from dbtab where substr(dbtab~field,2,4) = variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where variable is type c length 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that in various SQL there is a substr function but I can't find a similar one for the SQL used by ABAP...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 10:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-substring-in-sql-where-condition/m-p/4820530#M1128121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-21T10:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: using substring in sql where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-substring-in-sql-where-condition/m-p/4820531#M1128122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can wildcard text like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dbtab where feild1 = '%like%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 10:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-substring-in-sql-where-condition/m-p/4820531#M1128122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-21T10:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: using substring in sql where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-substring-in-sql-where-condition/m-p/4820532#M1128123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but this works for static texts, I want something that will work using a variable instead a static text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 10:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-substring-in-sql-where-condition/m-p/4820532#M1128123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-21T10:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: using substring in sql where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-substring-in-sql-where-condition/m-p/4820533#M1128124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not available in Open SQL, try WHERE field LIKE '__text%' for your example to search for occurrence of "text" in positions 3 to 6 of the column.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. you can build the search string using your variable contents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 10:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-substring-in-sql-where-condition/m-p/4820533#M1128124</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-11-21T10:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: using substring in sql where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-substring-in-sql-where-condition/m-p/4820534#M1128125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the contents in the table dbtab are  only few , you can do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select all the entries from the table into an internal table.&lt;/P&gt;&lt;P&gt;loop at the internal table checking for the required condition on the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this would reduce the burden on the database .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 13:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-substring-in-sql-where-condition/m-p/4820534#M1128125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-21T13:27:59Z</dc:date>
    </item>
  </channel>
</rss>

