1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| INSERT INFO your_table(column_namel,column_name2,...) VALUES('value1','value2',...) 1-1 INSERT INTO my_contacts (last_name,first_name,email,gender,birthday,professional,location,status,interests,seeking) VALUES ('Anderson','Jillian','jill_anderson@breakneckpizza.com','F','1980-09-05','Technical Writer','PaloAlto,CA', 'Single','Kayaking, Reptiles','Relationship,Friends');
1-2 var query = from user in SampleData.AllUsers from project in SampleData.AllProjects select new { User = user,Project = project}; foreach (var pair in query) { Console.WriteLine("{0}/{1}", pair.User.Name, pair.Project.Name) }
1-3 var query = from defect in SampleData.AllDefects where defect.AssignedTo != null group defect by defect.AssignedTo; foreach (var entry in query) { Console.WriteLine(entry.Key.Name); foreach (var defect in entry) { Console.WriteLine(" ({0}) {1}", defect.Severity, defect.Summary); } Console.WriteLine(); }
|