On 2015/11/25 1:44 AM, Igor Tandetnik wrote:
> On 11/24/2015 6:07 PM, Richard Hipp wrote:
>> On 11/24/15, James Hartley wrote:
>>> I would like to add a check constraint which determines if a string
>>> contains all digits, ie.
>>>
>>> sqlite> select zip_code from zip_codes where
gt; To: General Discussion of SQLite Database
> Subject: [sqlite] regular expression in check constraint?
>
> I would like to add a check constraint which determines if a string
> contains all digits, ie.
>
> sqlite> select zip_code from zip_codes where regexp(zip_code,
> '^[[:dig
On 11/24/2015 6:07 PM, Richard Hipp wrote:
> On 11/24/15, James Hartley wrote:
>> I would like to add a check constraint which determines if a string
>> contains all digits, ie.
>>
>> sqlite> select zip_code from zip_codes where regexp(zip_code,
>> '^[[:digit:]]+$');
>>
>> However, this generates
On 11/24/15, James Hartley wrote:
> I would like to add a check constraint which determines if a string
> contains all digits, ie.
>
> sqlite> select zip_code from zip_codes where regexp(zip_code,
> '^[[:digit:]]+$');
>
> However, this generates the error:
>
> Error: no such function: regexp
I would like to add a check constraint which determines if a string
contains all digits, ie.
sqlite> select zip_code from zip_codes where regexp(zip_code,
'^[[:digit:]]+$');
However, this generates the error:
Error: no such function: regexp
Searching through sqlite.org points that this
5 matches
Mail list logo