Expert help! About database insertion! Urgent! Question from cainiao!

Source: Internet
Author: User
Expert help! About database insertion! Urgent! Question from cainiao! Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiDB/html/delphi_20061218182608236.html
Expert help! I want to insert data into a table! This is the required rule!
You need to manually insert the name, unit, and age in the table! We need to calculate a coefficient by age. The coefficient of 40 is 1. Each increase of 4, the coefficient increases by 0. 05. The minimum age value is 32, and the coefficient is 0.9! Could you tell me how to do this? The coefficient must be inserted automatically and cannot be entered manually! Help!

Trigger
Or, when designing a table, set the coefficient field to the formula associated with age.

Determine the minimum age and coefficient, with edit_nl edit_xs
Zxnl = 32; // minimum age
Xs = 0.9; // coefficient Base
VaR NL: integer;
If (NL: = strtoint (edit_nl.text)> = zxnl then
If (NL-32) mod 4 then
Edit_xs: = intto (Xs + 0.05 );
In this case, OK.

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.