This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bin/mysql -u dbeaver -p -e "CREATE DATABASE eoffice CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;" | |
| bin/mysql -u dbeaver -p eoffice < /home/sumberwaras/Downloads/eoffice_db1.sql | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select name from employees | |
| where id not in(select managerId from employees where managerId is not null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select count(*)as nama from students | |
| where firstname="John" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Pipeline | |
| { | |
| public static function make_pipeline(...$funcs) | |
| { | |
| return function($arg) use ($funcs) | |
| { | |
| foreach ($funcs as $func){ | |
| $arg = $func($arg); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Palindrome | |
| { | |
| public static function isPalindrome($word) | |
| { | |
| $word = strtolower($word); | |
| $word2 = strlen($word); | |
| for($a = 0; $a < $word2; $a++) |