SQL

How to change the root password for MySQL in XAMPP?

MySql DataBase

How to change the root password for MySQL in XAMPP? January 03, 2009 By default, when you install XAMPP in your windows machine, the rootpassword for the MySQL is set to empty. But this is not recommended, as the MySQL database without a password will be accessible to everyone. To avoid this, a proper/secure password must be set to the user root. …

Read More »

How to detect if a string contains atleast a number?

TSql SQL

[code] SELECT * FROM Table WHERE Column LIKE ‘%[0-9]%’ [/code]

Read More »

Basic WooCommerce MySQL queries for Orders, Products and Categories

MySql DataBase

I do a lot of integration work between e-commerce cart software packages and third party systems.  Many e-commerce carts (Sunshop, VirtueMart, ZenCart, etc.) maintain their own database tables for storing orders, product, categories and everything the cart needs for the store to operate.   Accessing data from these tables is straightforward; the data is normalized for a cart application, with no meta …

Read More »

لیست id والدهای یک نود و pid در سیستم سلسله مراتبی

لیست id والدهای یک نود و pid در سیستم سلسله مراتبی

همیشه از این حالت سلسله مراتبی یا Hierarchical ,  recursive خوشم میومد یه مثال خیلی ساده برای یک چنین ساختاری در قالب TSQL و sql بصورت زیر هست که میتونید عین عبارت را در sql server  کپی و از نتیجه استفاده کنید البته میتونید با کمیی تغییرات اونو برای منوهای تودرتو ، سلسله مراتبی و treeview نیز استفاده کنید   declare …

Read More »