D
D
Deka0072018-05-19 10:14:44
C++ / C#
Deka007, 2018-05-19 10:14:44

How to make a trigger that would filter data by type, one capital, the rest lowercase (Capital)?

Hello. How to make a T-sql or MS SQL trigger to filter data when entering.
an example is "VASYA" => "Vasya", no matter how you enter it, it will always be "Vasya"
Table dbo.Person here are my fields
5affcde83ab49515112517.png
In mysql I did like this (fields name, lastname, surname).
5affce2974579250496877.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-stream, 2018-05-19
@d-stream

And what for for such trigger?
Normal variant - transformation on insert and update.
The ideal is in the form of a call to a stored procedure that writes preprocessed data.
Well, a moment: there is a famous literary character Jim DiGriz - he really doesn’t like the mockery of his last name)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question