- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to add/merge two hash tables in PowerShell?
Adding values of the hash table is simple as the adding string. We just need to use the addition operator (+) to merge two hash table values.
Here, we have two hash tables: $htable and $htable1.
$htable = [Ordered]@{EmpName="Charlie";City="New York";EmpID="001"} $htable1 = [Ordered]@{Fruit='Apple';Color='Red'}
We will now add two hash tables,
$htable + $htalble1
PS C:\WINDOWS\system32> $htable+$htable1 Name Value ---- ----- EmpName Charlie City New York EmpID 001 Fruit Apple Color Red
- Related Articles
- Joining two hash tables in Javascript
- How to add and remove values to the Hash Table in PowerShell?
- How can I merge two MySQL tables?
- Merge two tables with union in MySQL?
- Hash Functions and Hash Tables
- How to create a Hash Table in PowerShell?
- Distributed Hash Tables (DHTs)
- C++ Program to Implement Hash Tables
- How to create and populate Java array of Hash tables?
- What is Hash Table in PowerShell?
- How to clear all values from the Hash table in PowerShell?
- Hash Tables for Integer Keys in Data Structure
- How to combine two tables and add a new column with records in MySQL?
- C++ Program to Implement Hash Tables with Double Hashing
- C++ Program to Implement Hash Tables with Linear Probing

Advertisements