the receptionist wants to display as
1,
1.1,
1.1.1,
1.1.1.1,
set five fields of id1,id2,id3,id4,id,
id is the primary key and type is varchar.
id1,2,3,4 type is int.
foreground ascending order: select id1,id2,id3,id4,id from t_task group by 1, 2, 3, 4
if you want to add a new piece of data, when the foreground enters "1.1.1.1", it is transmitted to the background in the form of a string. Convert the characters of the string 1, 3, 5, 5 and 7 into the int type. If not, set it to empty. The "1.1.1.1" stored in the id1,id2,id3,id4, entry is directly stored in the id field in the format of the string, and then the null judgment is repeated by the way. If the input format of the foreground is incorrect, you should also remind you to report an error, and the background processing and judgment should be written in java
.if there is only one "1", save it as 1? The display is also 1, and the id1 must be greater than 0. if the last three digits are empty, they will be set to empty.
I wonder if my preliminary idea is correct? Also ask the god for advice, thank you!