How dede adds the field father to dede_sys_enum
dedeHow to add the field father to dede_sys_enum?
dede provides a linkage model, corresponding to the database table dede_sys_enum, add A parent node field. Provide automatic update of triggers. There is an example below. You can refer to it.
Recommended learning: 梦Weavercms
Things:
dede provides Linkage model, corresponding to the database table dede_sys_enum, adds a parent node field. Provides automatic update of triggers.
Solution:
The trigger modifies the value of the father field
The code is as follows:
DELIMITER $$ CREATE TRIGGER `dede_sys_enum_AINS` BEFORE INSERT ON dede_sys_enum FOR EACH ROW BEGIN SET new.father=REPLACE(new.evalue,new.evalue,FLOOR(new.evalue/500)*500); end
The above is the detailed content of How dede adds the field father to dede_sys_enum. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)
