Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Except Insert missing
-- ///////////SCHEMA/////////////////////////////////////////////////// CREATE TABLE Animals ([animal] varchar(255), [legs] int, [colour] varchar(255)) ; CREATE TABLE ObjectPermissions ([animal] varchar(255), [permission] varchar(255), [record] int, [test1] varchar(255), [test2] varchar(255), [test3] varchar(255) ) ; INSERT INTO Animals ([animal], [legs], [colour]) VALUES ('cat', 4, 'red'), ('bird', 2, 'yellow'), ('dog', 4, 'red'), ('deer', 4, 'red'), ('fish', 0, 'blue'), ('dingo', 4, 'yellow') ; select * from animals -- //////////////////////////////////////////////////////////////////// DECLARE @temptable table ( animal VARCHAR(max), legs VARCHAR(max), colour VARCHAR(max) ) INSERT INTO @temptable (animal, legs, colour) VALUES ('fish' , 0, 'blue') INSERT INTO @temptable (animal, legs, colour) VALUES ('dog', 4, 'red') INSERT INTO @temptable (animal, legs, colour) VALUES ('Giraffe', 2, 'Orange') select * into #temp from @temptable insert Animals (animal, legs, colour) select animal, legs, colour from #temp except select animal, legs, colour from Animals drop table #temp; select * from animals
run
|
edit
|
history
|
help
0
Get all dates between two given dates
tt
Crea, confirma y despliega tablas
Xml Excercise 3
Merge Sample Code
NOT NULL field from SELECT INTO
reee
Digital Innovation One - SQL Server _2
Pana la ex 8, inclusiv
mysql4