SQLite string concatenation

Source: Internet
Author: User
Tags add numbers arithmetic bitwise sqlite

Select Path | | '% ' from t_category where depth = 0 and type = 0

Use ' | | ' Stitching strings

For example, if path is/1001/, the result is/1001/%.

Add numbers

SELECT ' A ' + ' B ' result is 0

Select "A" + "1" result is 1

Select "A" +1 result is 1

SELECT 2+1 result is 3

= in the "+" operation, SQLite treats string non-numeric strings as 0.

||String concatenation
*Arithmetic Multiply
/Arithmetic Divide
%Arithmetic modulus
+Arithmetic ADD
–Arithmetic Subtract
<<Bitwise Right Shift
>>Bitwise left Shift
&Logical and
|logical Or
< relational less than
<=  relational less than or equal to
>  Relational Greater than
>= relational Greater than or equal to
= < Span class= "Apple-tab-span" >relational Equal to
== relational Equal to
< > relational not equal to
!= Relational Not equal to
In logical in
And Logical and
Or logical OR
Like Relational String matching
Glob relational Filename matching

SQLite string concatenation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.