As a DBA, Many times we have to collect the row count for all the tables in database. Below are the two steps that can fulfill the requirement of getting the row count of all tables.
CREATEORREPLACEFUNCTIONget_count(schematext,tablenametext)RETURNSintegerAS$body$DECLAREcountinteger;queryvarchar;BEGINquery:='SELECT count(1) FROM '||schema||'.'||tablename;EXECUTEqueryINTOcount;RETURNcount;END;$body$LANGUAGEplpgsql;
Python program to restore multiple MarkLogic Forests simultaneously. This script can be used when you have different number of forests than database forests ...
कोडाचाद्री पश्चिम घाटातील शिखरांपैकी एक आहे आणि शिमोगा जिल्ह्यातील सर्वात उंच की जिथून आपण शिखरापेक्षा खाली ढग अनुभवू शकतो. ढगांचा एक समुद्र आपण नेहमीच डोळ्य...