# Array in C# with database

**URL:** <https://forum.codewithmosh.com/t/array-in-c-with-database/3346>\
**Category:** C#\
**Created:** [March 14, 2021, 7:15am UTC](https://forum.codewithmosh.com/t/array-in-c-with-database/3346 "2021-03-14T07:15:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![salsabiel](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@salsabiel](https://forum.codewithmosh.com/u/salsabiel)\
**Post date:** [March 14, 2021, 7:15am UTC](https://forum.codewithmosh.com/t/array-in-c-with-database/3346/1 "2021-03-14T07:15:04Z")

</div>

I need to understand this code and some tutorials about it

![Capture](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/c/cce4d5b9ffd56905d6bd396508160bfb57983474.png)

---

<div class="post-metadata">

**Author:** ![Anton2021](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/anton2021/32/1131_2.png) [@Anton2021](https://forum.codewithmosh.com/u/Anton2021)\
**Post date:** [March 14, 2021, 8:28am UTC](https://forum.codewithmosh.com/t/array-in-c-with-database/3346/2 "2021-03-14T08:28:44Z")

</div>

Any reason why you blued out many of the SQL ? From what is readable, I would say you define an array (sort of list) in C#, consisting of SQL commands to retrieve data. I hope that helps.

---

<div class="post-metadata">

**Author:** ![salsabiel](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@salsabiel](https://forum.codewithmosh.com/u/salsabiel)\
**Post date:** [March 14, 2021, 8:51am UTC](https://forum.codewithmosh.com/t/array-in-c-with-database/3346/3 "2021-03-14T08:51:30Z")

</div>

> [@Anton2021](#):
>
> define an array (sort of list) in C#, consisting of SQL commands to retrieve data

Thank you for replying the database it is not mine so i blured… but i need to understand the concept how to retrieve and save in array as in picture.

---

<div class="post-metadata">

**Author:** ![Anton2021](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/anton2021/32/1131_2.png) [@Anton2021](https://forum.codewithmosh.com/u/Anton2021)\
**Post date:** [March 14, 2021, 9:09am UTC](https://forum.codewithmosh.com/t/array-in-c-with-database/3346/4 "2021-03-14T09:09:24Z")

</div>

Which part of the C# course is this ? I’m afraid I am not that far yet with either the C# or mySQL to explain fully.
