https://github.com/enginkaratas/how-to-check-a-email-or-a-constraint-with-triggers-instead-of
With this code, check your mask
https://github.com/enginkaratas/how-to-check-a-email-or-a-constraint-with-triggers-instead-of
Last synced: 13 days ago
JSON representation
With this code, check your mask
- Host: GitHub
- URL: https://github.com/enginkaratas/how-to-check-a-email-or-a-constraint-with-triggers-instead-of
- Owner: EnginKARATAS
- Created: 2020-12-13T09:31:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-13T09:31:31.000Z (over 4 years ago)
- Last Synced: 2025-01-03T13:53:34.152Z (6 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
--# How to check a email or a constraint with triggers-instead of
--With this code, check your mask
--Check email with istead of triggercreate TRIGGER CheckEmail ON Activeusers INSTEAD OF INSERT
AS
BEGIN
declare @email varchar(40)
SELECT @email = email FROM INSERTED;
if(@email like '%_@__%.__%')
begin
print @email
end
else
begin
print 'this statement doesn`t providing.(emails doesn`t matching)'
end
END
insert into Activeusers values('[email protected]','xx','xx')