Advertisement
JanuszKowalski123

fanthoms

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