A newbie asked me a question. are you great gods here? I'm sorry!

Source: Internet
Author: User
A newbie asked me a question. are you great gods here? I'm sorry! I have obtained the aid of two documents, aid01 and aid02, which are in different data tables with the same table fields.

Then I want to find the corresponding data table based on the aid field,
Then, the values of the fields zws and zws01 in the champaign table and return table are extracted respectively-1.

Big Brother, help me, new brother .... Online, etc! The code is passed. score immediately!


Reply to discussion (solution)

I can't understand it. let's give an example.

Updat' #@__ champaign 'set zws = zws-1 WHERE aid = '$ aid ';
I wrote the above, but it was unsuccessful. the zws field value has not changed. I am not-1. I have read the original value.

$ Does aid have a value? Echo $ aid;

@ Jordan102 asked me about the idea. it helped me a lot! Thanks to the moderator... I wrote the aid variable wrong. it should be aid01. thank you very much! Give away

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.