Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Sesja 1: Dodanie nowych wierszy do tabeli
- INSERT INTO Renewable_Energy_Devices (device_id, device_status, device_power, company_id, device_location, device_location_geom, device_hierarchy, device_description)
- VALUES ('New_Device_1', 1, 500, 2, GEOGRAPHY::Point(40, -100, 4326), GEOMETRY::Point(40, -100, 0), HIERARCHYID::GetRoot(), '<description>New Device 1</description>');
- -- Sesja 2: Przedstawienie zjawiska fantomów
- -- Wykonanie zapytania przed dodaniem nowych wierszy
- SELECT * FROM Renewable_Energy_Devices;
- -- Sesja 1: Usunięcie wierszy
- DELETE FROM Renewable_Energy_Devices WHERE device_id = 'Device_1';
- -- Sesja 2: Wykonanie zapytania po usunięciu wierszy
- SELECT * FROM Renewable_Energy_Devices;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement