Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Using varaible
-- ///////////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 @legsVar nvarchar(max); set @legsVar = '4'; select * from animals where legs = @legsVar
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Arif
Finding gaps, NOT EXISTS clause analysis_1_put on a wall
Delete double entries from a table without primary key
search all tables for string
Tablestudent
Crea, confirma y despliega tablas
EmployeeDetails
Teacher
BRYAN_BD Actul
manish
stackse - search stackoverflow differently
Please log in to post a comment.