Why can't I insert it?

Source: Internet
Author: User



INSERT into ' category ' (' IDs ', (select Concat (Catpath, '-', id) as Abspath from category Order by Abspath) as Abspath, ' name ' ) VALUES (44, ' 0-1-2-11 ', ' website homepage ');
Why can't I insert


Reply to discussion (solution)

INSERT into ' category ' (' id ', ' abspath ', ' name ') VALUES
(44, ' 0-1-2-11 ', ' website homepage ');
The category parentheses are the fields. Why do you write SQL statements?

INSERT into ' category ' (' id ', ' abspath ', ' name ') VALUES
(44, ' 0-1-2-11 ', ' website homepage ');
The category parentheses are the fields. Why do you write SQL statements?

Insert it.

INSERT into ' category ' (' id ', ' abspath ', ' name ') VALUES
(44, ' 0-1-2-11 ', ' website homepage ');
The category parentheses are the fields. Why do you write SQL statements?

Then I'm going to have to implement my function.

INSERT into ' category ' (' id ', ' abspath ', ' name ') VALUES
(44, ' 0-1-2-11 ', ' website homepage ');
The category parentheses are the fields. Why do you write SQL statements? Come on, I'm still using the original method.

INSERT into ' category ' (' id ', ' catpath ', ' name ') VALUES
(Concat, (Catpath, '-', id) as Abspath from the category order by Abspath) as Abspath, ' website home ');
???

Do not know what to do, your category table does not have a abspath field.

Is this field catpath to write wrong?

  • 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.