Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 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 (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-13T09:31:31.000Z (about 4 years ago)
- Last Synced: 2024-02-08T22:16:55.108Z (11 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')