我创建了一个存储过程来为我创建用户定义的表类型插入一堆行。
from django.core.mail import EmailMultiAlternatives
import settings
def send_mail():
from_email = settings.EMAIL_HOST_USER
to_email = ['your_email_address@example.com']
subject = "Any text"
body = "Hello world"
msg = EmailMultiAlternatives(subject, body, from_email, to_email)
msg.send()
send_mail()
此处MAP_Deg_CYr_Id是Max + 1列,表示此列的值将是max(MAP_Deg_CYr_Id)+1。如果我从用户定义的表中获取值
,我有问题如何生成max + 1值