| |

VerySource

 Forgot password?
 Register
Search
View: 710|Reply: 2

SQL insert record problem,

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-30 19:20:02
| Show all posts |Read mode
Is there a way to make the default value of a field of a table based on a certain field of a newly inserted record as a parameter, query another table to get the value to insert the field? Can I use stored procedures or views? Take an example!
Reply

Use magic Report

0

Threads

49

Posts

35.00

Credits

Newbie

Rank: 1

Credits
35.00

 China

Post time: 2020-3-7 21:30:01
| Show all posts
Use triggers!
Reply

Use magic Report

0

Threads

22

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 United States

Post time: 2020-3-20 14:45:01
| Show all posts
trigger
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list