Quantcast
Channel: database – blog.azwan.net
Browsing latest articles
Browse All 16 View Live

Ledger – debit and credit

Here’s the list Debit Credit Collection x Bill x CN x DN x Refund x

View Article



Use decimal, not float for money value

Use decimal at it is more accurate for money value in MySQL. e.g. rounding etc. Using float will end up some inaccuracy of calculation.

View Article

Getting data from CI db query

1. All result set $query = $this->db->query("YOUR QUERY"); if ($query->num_rows() > 0) {    foreach ($query->result() as $row)    {       echo $row->title;       echo $row->name;...

View Article

Sample use of CI query builder for CRUD

Sample insert $data = array( 'title' => $title, 'name' => $name, 'date' => $date ); $this->db->insert('mytable', $data); Sample update $this->db->update('mytable', $data, "id =...

View Article

Some uncommon mysql command

https://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_coalesce COALESCE() IN NOT_IN NOT_LIKE

View Article


Transparent Data Encryption (TDE)

To secure the data by encryption at data at database level. This will be full done by database application and won’t affect the application level. Almost all popular RDBMS provide this feature but...

View Article

Image may be NSFW.
Clik here to view.

Notes on Azure

Some notes on Microsoft Azure 3 type of services provided App Service –  Scalable Web Apps, Mobile Apps, API Apps, and Logic Apps for any device Cloud Service – Highly available, scalable n-tier cloud...

View Article

Image may be NSFW.
Clik here to view.

MySQL int type reference

 

View Article


Check value exist in a table but not in another table

SQL to check a value exist in one table but not in another. SELECT t1.name FROM table1 t1 LEFT JOIN table2 t2 ON t2.name = t1.name WHERE t2.name IS NULL or this (not tested) SELECT * FROM B WHERE NOT...

View Article


MySQL transaction

Transaction feature suitable to be used in 2 conditions. If you have multiple statements to run and want to ensure all of them run successfully to conclude the task. If you want to run a delete...

View Article
Browsing latest articles
Browse All 16 View Live




Latest Images